DebuglogArchives Forums/Blitz3D Bug Reports/Debuglog
The debuglog (VERY usefull), seems to have undergone a change in the latest updates. I think it went from super usefull, to a little bit less usefull..
1. When the program end, its impossible to look at it. (as far as I know)
2. You cannot copy and paste from it (anymore?)
Is it stored in a file, for later reference, or ?
| No comment?, am I the first to notice this?, or is there a easy workaround for this? |
| It's been like this for a very long time, since the compiler and debugger got separated from the IDE.|
1. Just don't end the program. Wherever you were going to End use Stop instead.
2. You can still copy from the debuglog. Use Ctrl-C to copy.
| Ok, so maybe i've been running a very old version for a long time then. The problem with Ctrl-C is that it does not work, if the program stops with an exception.|
Then the clipboard will contain the text from the exception instead. Closing the exception, will close the debuglog as well.
| This might help and I used to use [a http://web.archive.org/web/20070522112802/http://www.blitzcoder.com/cgi-bin/showcase/showcase_showentry.pl?id=turtle177605242003022746&comments=no] this [/a] |
| Hi, Thats exactly what I want! But I still think its something that should be in the Basic itself. Its so easy to include in the basic. Also a debuglog thats inside the language, can be removed from the code in compilation time, making the executable faster in non debug mode. With a custom function, thats harder. |
But of course, its easy to make this yourself, as your excelent example shows.
| Hope this is not off topic, but it is related to tonyg's debug function.|
Is there a way that you can detect if Blitz is run in debugmode, or not?
If BlitzDebug=1 Then
;write debug to file