Editor: Blend out debug statements
Posted: Fri Jun 20, 2025 11:35 am
The Purebasic Debugger toggle is a very nice feature: we can easily control the use of debug-statements in the sourcecode and can switch them on an off, so that the compiler ignores debug if we wish it.
However, if i found with debug all failures and errors, I start deleting all or most of the debug statements, the sourcecode is more readable and more structured.
That is in most cases no problem - but sometimes we need the debugs again.
Make it not sense to implement a debug blend out function in the editor, so we can switch on and off debugs in the sourcecode ?
Then we could leave debugs in the sourcecode and must not delete them and can use them again.
However, if i found with debug all failures and errors, I start deleting all or most of the debug statements, the sourcecode is more readable and more structured.
That is in most cases no problem - but sometimes we need the debugs again.
Make it not sense to implement a debug blend out function in the editor, so we can switch on and off debugs in the sourcecode ?
Then we could leave debugs in the sourcecode and must not delete them and can use them again.