调试器未到达第一行代码 [英] Debugger not reaching the first line of code

查看:51
本文介绍了调试器未到达第一行代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在接受采访时被问到这个奇怪的问题 - 有一行

C代码(最简单的你可以假设,一个printf声明里面

main)并在第一行设置断点。代码

编译并运行但调试器永远不会到达该断点。什么

可能是这背后可能的原因/错误/问题。有没有人对此有任何线索

谢谢,

Shishir


I was asked this peculiar question in an interview - There''s a one line
C code ( the simplest you can assume , a printf statement inside the
main) and a breakpoint has been set at that very first line. The code
compiles and runs but the debugger never reaches that breakpoint. What
could be the possible reason/bug/issue behind this. Does anyone have
any clue to this.
Thanks,
Shishir

推荐答案

2006-04-05,shishir< sh **************** @ gmail.com>写道:
On 2006-04-05, shishir <sh****************@gmail.com> wrote:

我在接受采访时被问到这个奇怪的问题 - 有一行代码?(C代码最简单,你可以假设一个printf语句
main)并在第一行设置断点。代码
编译并运行,但调试器永远不会到达该断点。什么
可能是这背后可能的原因/错误/问题。有没有人对此有任何线索。
谢谢,

I was asked this peculiar question in an interview - There''s a one line
C code ( the simplest you can assume , a printf statement inside the
main) and a breakpoint has been set at that very first line. The code
compiles and runs but the debugger never reaches that breakpoint. What
could be the possible reason/bug/issue behind this. Does anyone have
any clue to this.
Thanks,




一个未定义的全局初始化器,也许?



An undefined global initializer, maybe?

< br <>

shishir写道:
shishir wrote:

我在接受采访时被问到这个奇怪的问题 - 有一行代码
C代码(最简单的你可以假设,
main中的printf语句,并且在第一行设置了断点。代码
编译并运行,但调试器永远不会到达该断点。什么
可能是这背后可能的原因/错误/问题。有没有人对此有任何线索。

I was asked this peculiar question in an interview - There''s a one line
C code ( the simplest you can assume , a printf statement inside the
main) and a breakpoint has been set at that very first line. The code
compiles and runs but the debugger never reaches that breakpoint. What
could be the possible reason/bug/issue behind this. Does anyone have
any clue to this.



可能是用户错误。

提供更多信息,指导您的特定频道

平台/编译器/调试器以获得更多答案。


Could be a user bug.
Provide more info directed in the proper channel for your particular
platform/compiler/debugger for more answers.


" shishir" < SH **************** @ gmail.com>写道:
"shishir" <sh****************@gmail.com> wrote:
我在接受采访时被问到这个奇怪的问题 - 有一行代码(最简单的你可以假设,一个printf语句在
main)并在第一行设置断点。代码
编译并运行,但调试器永远不会到达该断点。什么
可能是这背后可能的原因/错误/问题。有没有人对此有任何线索。
I was asked this peculiar question in an interview - There''s a one line
C code ( the simplest you can assume , a printf statement inside the
main) and a breakpoint has been set at that very first line. The code
compiles and runs but the debugger never reaches that breakpoint. What
could be the possible reason/bug/issue behind this. Does anyone have
any clue to this.




很明显,面试官已经阅读了常见问题解答,你还没有。

HTH;手。


Richard



Clearly the interviewer had read the FAQ, and you haven''t.

HTH; HAND.

Richard


这篇关于调试器未到达第一行代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆