Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

Causing breakpoints in code from Visual Studio

Started by theZapper Sep 27, 2005 at 8:35 AM 6 replies 750+ views
Original Post
theZapper
theZapper
Hi Does anyone know if it is possible for your code to create and cause a breakpoint arbitrarily? I.e. when my code is running and spots somthing wrong, can it cause Visual Studio to break at that point? Thanks
---When I'm in command, every mission's a suicide mission!
SiCrane
SiCrane
You can put a __asm int 3; statement in MSVC.
theZapper
theZapper
Ok thanks
---When I'm in command, every mission's a suicide mission!
theZapper
theZapper
By the way, can you continue debugging from that point? can I still step through the rest of the code after the __asm int 3; line has run?
---When I'm in command, every mission's a suicide mission!
SiCrane
SiCrane
Yes.
theZapper
theZapper
Ta.
---When I'm in command, every mission's a suicide mission!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.