If not, sure would like that feature in the next release.

Code: Select all
Debug "TEST"
MessageRequester("","TEST")
Code: Select all
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\path to\username>cd \TEST
C:\TEST>D:\path to Compiler\PBCompiler.exe test.pb /DEBUGGER /EXE .\test.exe
******************************************
PureBasic v3.92 - Windows x86
******************************************
Compiling test.pb
Loading external libraries...
Starting compilation...
2 lines processed.
Creating executable.
- Feel the ..PuRe.. Power -
C:\TEST>
Code: Select all
@echo off
REM check if a file was given as arguemnt
REM if no file was given ... show the usage
if "%~1"=="" goto :ShowUsage
REM set environment variable PBCompiler
set PBCompiler=Drive:\path to compiler\PBCompiler.exe
REM change to drive, where the pb-file is
%~d1
REM change to directory of the pb-file
cd "%~dp1"
REM compile the file
"%PBCompiler%" "%~nx1" /DEBUGGER /EXE "%~n1.exe"
REM call the exe file
echo.
echo.-------------------------------------------------------------------------------
echo program is running in debug mode ...
"%~n1.exe"
echo program execution stopped ...
echo.-------------------------------------------------------------------------------
echo.
REM pause the execution of the batchfile,
REM so you can check the output of PBCompiler
pause
:REM end the batchfile
goto :EOF
REM usage of batch file
:ShowUsage
echo.
echo Usage: pb_debug.bat <source_file.pb>
echo pb_debug <source_file.pb>
echo.
pause
goto :EOF
No! That is not true! I activated debugger in IDE (with menu Compiler->Debugger) than I created the exe and started it. The debugger window does not show up!El_Choni wrote:Of course the IDE does support it; when you select "create executable" and you're prompted for the exe folder and name, the IDE calls the compiler with the same options you're using in your example.
But in this case I cannot tell the compiler that the exe name should be extracetd from the source-filename (i.e. file.pb => file.exe).El_Choni wrote:You can also add those options for the PBCompiler as a new Tool (in the Tools menu), without having to use a .bat file.
In jaPBe with [F5] (Compile/Run) and [F6] (Compile/Debug) the EXE with the name "Purebasic[Number].exe" is also created in the Compilers directory (.\PureBasic\Compilers).Rescator wrote:So far I've been using jaPBe and it lucikly seems to change work directory to the source folder so you can just leave all dll's and .ini files in the source folder.