Debugging
Debugging
How to debug Source.Python plugin?
The debugging build only uses different compiler settings. E.g. code optimization is disabled and the binaries contain more symbols. Also, our thirdparty libraries might do some more error checking. However, our binaries don't do more error checking. So, the debugging build is only useful if you want to debug Source.Python's core and not if you want to debug your own plugin.
I am really not sure what you expect. Our debug build is broken currently, and that is something we do need to fix. However, since most functionality we expose is simply directly exposing engine functionality, there is nothing to debug. We cannot provide debugging for the SDK. We can only provide it for functionality directly written into our plugin, and any third party libraries we have direct access to the code for.
Is there anything specific that you are trying to debug? Maybe we can help you out with that.
Is there anything specific that you are trying to debug? Maybe we can help you out with that.
I don't see what's wrong with examining logs? And isn't what you're suggesting already implemented? If my plugin contains an error it'll run until it encounters the spot of the error (your breakpoint) and throw an exception and logs it to where you specified (server console if you want).
It even keeps doing this and doesn't crash the server if you're not messing with the memory or doing other stuff Valve never intended you to do. You can go to the spot of your error fix it, sp reload and you're back up and running, and sp will tell you where you made your next mistake if any!
Personally I couldn't ask for more!
Edit: well an AI fixing my code would be nice, but would also make me obsolete, and that's also no fun!
It even keeps doing this and doesn't crash the server if you're not messing with the memory or doing other stuff Valve never intended you to do. You can go to the spot of your error fix it, sp reload and you're back up and running, and sp will tell you where you made your next mistake if any!
Personally I couldn't ask for more!
Edit: well an AI fixing my code would be nice, but would also make me obsolete, and that's also no fun!
Return to “General Discussion”
Who is online
Users browsing this forum: No registered users and 11 guests