Syntax check should use the debugger when enabled

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 538
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Syntax check should use the debugger when enabled

Post by Sicro »

PB-IDE: Compiler => Syntax check
Console: pbcompiler --check --debugger code.pb
Console: pbcompiler --check code.pb

Because the syntax check doesn't take the debugger setting into account, this code can't be checked:

Code: Select all

CompilerIf Not #PB_Compiler_Debugger
  CompilerError "Please activate the debugger!"
CompilerEndIf

; Main code
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version