You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> cl /Zi /EHsc .\hello.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34120 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
hello.cpp
Microsoft (R) Incremental Linker Version 14.41.34120.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:hello.exe
/debug
hello.obj
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Environment
Problem
When I start debugging a program, instead of the debugger breaking at
main
, it breaks before main and shows assembly no matter what I try.I can switch back to the open buffer with my source, and issue a debug command to continue and it will stop at my breakpoint.
Question
How can I prevent the early breakpoint activation?
Source Code
Compilation Flags:
Screenshots of Debugging Session
Starting the debugging session:
First break point:
Switching back to hello.cpp:
Continuing to breakpoint in
main
:Beta Was this translation helpful? Give feedback.
All reactions