Page 1 of 1

Show exit code on Windows

Posted: Sat Apr 17, 2021 11:16 pm
by pawo

Hello,

I'm trying to migrate from Code::Blocks to CodeLite and I'm missing an option to show return value in terminal, also I saw that when using CMD terminal and return value of main isn't 0 console will close imediately without prompt from "pause"

Currently I workaround this with a script:

Code: Select all

@echo off

%1 
echo %errorlevel%

pause

and the ExternalTools plugin with Tool path="run $(WorkspacePath)/build-$(WorkspaceConfiguration)/bin/$(OutputFile)", but running code this way is not convenient ...

Is there any way to add exit infomation in Output Pane same as it's in C::B?
My CodeLite version is 15.0

Thank you in advance.
Pawo