[英]Command prompt in debug mode for Eclipse? (OpenCV + Eclipse + Win7)
[英]Adding cmdline (win7) as an Eclipse console view
我已經在linux中看到了。 您可以打開一個只有外殼的控制台。 我只想在Windows中使用cmd或git bash進行相同操作。 (MINGW32)。 我嘗試使用谷歌搜索,但是卻充斥着有關egit和普通git bash的文章。
如果您有msysgit,則可以在常規cmd會話中使用它:
啟動c:\\windows\\system32\\cmd.exe /k <path\\to\\your\\msysgit>\\git-cmd.bat
,您可以在該cmd Windows中輸入常規git命令。
對於bash會話 : c:\\windows\\system32\\cmd.exe /k <path\\to\\your\\msysgit>\\git-bash.bat
。
請注意,您需要修改這些蝙蝠:
git-cmd.bat
:在setlocal
命令之前和結尾處之前添加一個rem。 git-bash.bat
:在setlocal
命令之前添加一個rem。 因此,您可以在Eclipse中添加一個外部工具,該工具將在控制台中打開一個cmd :
除了可以調用C:\\windows\\system32\\cmd.exe
(在上圖的“ Location
”字段中),您可以直接調用: C:\\windows\\system32\\cmd.exe /k <path\\to\\your\\msysgit>\\git-bash.bat
。
通過“ msysgit”,我指的是您為“ Git For Windows ”的未經壓縮的便攜式版本提供的任何名稱: 在此處下載 。
然后,您可以在Eclipse控制台(包括bash會話)中鍵入git命令!
經過測試后,即使git起作用,顏色代碼也會妨礙您:
git-cmd.bat
:
git-bash.bat
:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.