Skip to content

External BAT shell redirect to eclipse CDT Console #531

Answered by jld01
shadolight asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend creating an Eclipse External Tool Configuration of type Program to invoke your launch.bat file. You can force an external console using the following settings in the launch configuration:

  • Location: C:\Windows\System32\cmd.exe
  • Arguments: /c "start launch.bat"

You will need to add exit as a final command in your launch.bat file to close the console and you will probably wish to disable Build before launch in the launch configuration.

You can then create an Eclipse Launch Group to launch your external tool launch configuration and your GDB debug launch configuration in sequence. When adding the external tools configuration to the launch group, use the following options:

  • L…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jld01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants