Hello friends,
one beginner question. Please, when I use Debug() command in program, and when I compile this program, where is the output file?
Thank you!
Debug file - location
- zxretrosoft
- Enthusiast
- Posts: 169
- Joined: Wed May 15, 2013 8:26 am
- Location: Czech Republic, Prague
- Contact:
Re: Debug file - location
Debug ProgramFilename()
Or if you want to have a debug.log use SaveDebugOutput()
Or if you want to have a debug.log use SaveDebugOutput()
- zxretrosoft
- Enthusiast
- Posts: 169
- Joined: Wed May 15, 2013 8:26 am
- Location: Czech Republic, Prague
- Contact:
Re: Debug file - location
Thank you, but I can not do it...
I have in program:
Debug("Hello!")
Debug ProgramFilename()
or
Debug("Hello!")
SaveDebugOutput("C:\temp\name.txt")
And not one case works
I have in program:
Debug("Hello!")
Debug ProgramFilename()
or
Debug("Hello!")
SaveDebugOutput("C:\temp\name.txt")
And not one case works
Re: Debug file - location
Works here on Windows PC.Debug("Hello!")
SaveDebugOutput("C:\temp\name.txt")
Do you have access rights to save in that location and you have the debugger turned on when you use Compile/Run button?
If you are compiling to EXE and then running the EXE, you won't get debugger output because debugger isn't compiled into EXE.
- zxretrosoft
- Enthusiast
- Posts: 169
- Joined: Wed May 15, 2013 8:26 am
- Location: Czech Republic, Prague
- Contact:
Re: Debug file - location
Yes, it works.
But if I make an EXE and run it, then does not work.
EDIT: Aha, thank you very much!
But if I make an EXE and run it, then does not work.
EDIT: Aha, thank you very much!
Re: Debug file - location
Maybe the OnError library might help you for compiled EXE's ?
Take a look at that in the PureBasic help file.
Take a look at that in the PureBasic help file.
Re: Debug file - location
Run following code in Debug mode, go to %USERPROFILE%\AppData\Local\Temp and search for PureBasic_Compilation?.exe
CallDebugger is only called to prevent the console window from closing...
Code: Select all
Debug "hello"
CallDebugger
Et cetera is my worst enemy