Show exit code on Windows

CodeLite installation/troubleshooting forum
pawo
CodeLite Curious
Posts: 3
Joined: Fri Apr 16, 2021 2:40 pm
Genuine User: Yes
IDE Question: C++
Contact:

Show exit code on Windows

Post 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