Page 1 of 1

Posted: Sat Feb 08, 2003 1:26 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

Hi @ all,
If you ever tried to code a very complete program and maybe want to write the path or any other stuff to the registry too and you want or need any SubDirs in the directory where you start your app from, it would be nice to run the project with enabled debugger not only from the editor! So i would preffer if ppl enable the debugger and save the project as exe, that pure will be so clever and create your exe with included (full working) debugger! This would be very usefull if you have an app like server and client and you want test your app on friends pc´s for example! So you can just send your beta app as exe with included debugger and all ppl can test your app without the need of the full pure package you dont want install on ppl PC´s! If something will failed, the debugger will appear and the program will not crash... So ppl can tell you where/which problem the debugger is telling...

If your program is final and free of bugs, you only have to save it again as exe without debugger! I think this would be a really great feature for all of us, isnt it?

greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...

Posted: Sat Feb 08, 2003 4:39 pm
by BackupUser
Restored from previous forum. Originally posted by GPI.

easy add under "compiler>compiler option / command line" "/debugger"

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB

Posted: Sat Feb 08, 2003 5:16 pm
by BackupUser
Restored from previous forum. Originally posted by tinman.
Originally posted by GPI

easy add under "compiler>compiler option / command line" "/debugger"
Not quite. PureBasic does not include the debugger in executables, even if you tell it to. And that "Command line" option is actually for giving parameters to your own program, not the compiler.


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + all updates, PB3.51)

Posted: Sat Feb 08, 2003 5:59 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

Hi GPI,
if you enable the debugger, you can only use and work with it, when running/compiling from the editor... It will not inluded to the executeable and so you can test it with an included debugger by any friends or on other systems (without pure package). What you get when you create executeable, is the same version as when creating an executeable with disabled debugger!

So my wish is, to create executeables where the debugger will be included for testing on friends pc and so on - when you selected debugger enabled!


greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...

Posted: Sat Feb 08, 2003 8:23 pm
by BackupUser
Restored from previous forum. Originally posted by Pupil.

You can include the debugger in the final exe if you want, i don't know if it is possible with the PB editor (i use ultra edit so i don't really know or care) but if you use the compiler from a cmd window you can do it:

PBCompiler.exe "YourSource.pb" /EXE "YourEXEName.exe" /DEBUGGER

It's all in the manual if anyone ever bothers to read it..

Posted: Sat Feb 08, 2003 8:47 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

Oh, works fine! Thx Pupil.

Fred, can you add this feature to the editor too (maybe an optional flag []IncludeDebugger), would be nice to use this feature from IDE too, instead only from console. thx

greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...

Posted: Sat Feb 08, 2003 11:38 pm
by BackupUser
Restored from previous forum. Originally posted by tinman.

Thanks Pupil. I found out why it never includes the debugger when I compile an exe, and it is because I always use the /COMMENTED switch.

Funny thing is though, when I remove that and compile in the debugger the exe produced crashes complaining about uninitialised gadgets. It runs fine if I compile and run with the debugger on.


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + all updates, PB3.51, Ed3.53)