![]() |
Debugging with MSVC & STEAM is possible
Perhaps already known, but then again:
You can trace crashes by line number using MSVC. You do not really need to set it on 'debug mode'. What i did was set the configuration on Release Mode and changed a few options on the compiling settings: On the C/C++ Tab: Debug info is set to : Line Numbers Only On the Link Tab: Check the "Generate Debug Info" THats it. Whenever your bot seems to crash, you can click on the button to 'trace the error'. MSVC will open in Debug mode. SHowing you some ASM crap probably, but you can backtrace that (below you can see the 'route of functions') and find your exact line number where it crashed. |
Re: Debugging with MSVC & STEAM is possible
I know ;) Its just that I hate that > 50% of the time I only can see the 'ASM crap' and not my only functions :-\
|
Re: Debugging with MSVC & STEAM is possible
well, If I wanna debug, I use mostly the debug mode ... well, it isnt running that smooth like the release dll, but it's also still playable on my celeron 466 ( next week I'm gonna be back at my 3ghz :) )
@rick : you noticed the call stack window where you can see which of your functions called maybe some nonsourcecodeavailable function ? |
Re: Debugging with MSVC & STEAM is possible
Quote:
j/k |
Re: Debugging with MSVC & STEAM is possible
Quote:
|
Re: Debugging with MSVC & STEAM is possible
yes, sometimes it crashes inside hl. that's often caused by flooding the engine with messages or providing bad pointer.
the debugger is anyway no always helpful, especially if something overwrites some data and half a minute later another part of the bot crashes ... |
Re: Debugging with MSVC & STEAM is possible
sometimes the hl.exe will just dump you on windows without any notification. So it immidiatly drops out and leaves you guessing what went wrong.
I hope HL 2 or something will have a much better debugging option for us coders. |
All times are GMT +2. The time now is 03:43. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.