1. 程式人生 > >ECLIPSE除錯C++出錯的解決方法

ECLIPSE除錯C++出錯的解決方法

出錯提示:Can't find a source file at "xxxxx“Locate the file or edit the source lookup path to include its location.

解決:來自ECLIPSE的WIKI:

DETAIL:

I'm using cygwin and when launching the debugger, it complains that it can't find the source file

You must provide a mapping from /cygdrive/c to c:/ (or whatever your drive letter is).

To do this,

  1. From the editor error page, select the "Edit Source Lookup Path..." button and select the "Add..." button
    • Or, in the eclipse IDE, go to menu Window -> Preferences -> C/C++ -> Debug-> Common Source Lookup Path -> Add.
  2. From the list of lookup containers, choose Path Mapping and OK. You get a New Mapping in the list.
  3. Select the mapping and then Edit. In the Modify the path mappings dialog, select Add, and then enter:
    • /cygdrive/c as the compilation path and
    • c:/ as the local file system path.
  4. Select OK, OK, OK to finish the dialogs.
  5. Terminate the debug session and restart; it should find your source files now.

This setting will apply to any debug sessions launched from this workspace.

You can also modify the settings in each individual launch configuration.

相關推薦

ECLIPSE除錯C++出錯解決方法

出錯提示:Can't find a source file at "xxxxx“Locate the file or edit the source lookup path to include its location. 解決:來自ECLIPSE的WIKI: DE

eclipse除錯C程式碼時printf()不能輸出到控制檯的解決方法

1、問題 在ecplise下使用CDT開發C/C++程式中,使用debug除錯時,到了printf 列印函式,在console視窗中並沒有打印出資訊來,停止後才會有輸出。 2、原因 在debug除錯時, eclipse 將輸出的內容存放到了輸出快取區中,沒有及時

Eclipse4.5.1 Mars C++11 編譯出錯解決方法

2016年07月11日 16:42:38 dounine 閱讀數:3183 <span class="tags-box artic-tag-box"> <span class="label

小米4安卓開發真機除錯Eclipse中Unknown的解決方法

這段時間在學安卓,使用小米2真機除錯。昨天換了小米4,連上電腦可以正常傳輸檔案,但是在Eclipse中卻顯示Unknown。手機已經開啟開發者選項和USB除錯。 谷歌後有的說在撥號介面輸*#*#717

關於eclipse 3.5.0安裝Git外掛出錯解決方法

使用Help --> Install New Software... 進行線上安裝外掛  eclipse 3.5.0的可以使用1.3版本的git:輸入  http://download.eclipse.org/egit/updates-1.3/ 注,不支援2.0

jmeter安裝過程以及安裝出錯解決方法

技術 錯誤 安裝 -1 環境 png nbsp net java環境變量 1、安裝最新版的jmter需要1.8的jdk http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-213315

升級JDK9後eclipse無法啟動的解決方法

eclipse java1.9更新到Jdk9後,就出現Eclipse找不到jdk裏面類的問題(無法啟動):org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostCons

python使用IP代理示例及出錯解決方法

python 代理ip requests模塊 一、代碼示例# -*- coding:utf-8 -*- import requests header = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64

Hyper-v交換機添加出錯解決方法

inf body 虛擬機 技術 虛擬交換機 設備管理器 info 分享 mark 這個問題中文找不到解決方法,只能重新安裝系統了 重新安裝系統後,按照順序操作,不要去動設備管理器中的東西,也不用動驅動,先刪除虛擬機的網絡連接,在刪除虛擬交換機就可以了,沒有再出現問題 Hy

Perl編譯出錯解決方法

Perl編譯出錯解決方法Perl編譯出錯:解決:yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker cpan perl-devel -yPerl編譯出錯解決方法

eclipse沒有server選項解決方法

eclipse沒有server選項解決方eclipse是是一個開放源代碼的、基於Java的可擴展開發平臺。就其本身而言,它只是一個框架和一組服務,用於通過插件組件構建開發環境。 它使用頻率十分高,然而當使用它配置weblogic的時候,經常會發現一個重要的問題就是打開eclipse之後沒有了server選項,

powershell 跑EAC命令使用resultsize unlimited出錯解決方法

powershell resultsize unlimited 執行powershell命令使用無往不利的resultsize unlimited出錯。unlimited使用具體數字代替即可,前提是知道你的數據量有多少。暫時不明原因。如有人知道還請評論下分享,謝謝。powershell 跑EAC命令使

$ sudo python -m pip install pylint 出錯解決方法

studio span lang 問題 pan 方法 pretty sudo pytho 問題:在unbuntu執行$ sudo python -m pip install pylint出錯解決方法支行以下命令sudo pip install pylint==1.9.3這

未載入mfc120ud.i386.pdb:VS2013除錯MFC程式解決方法

剛使用VS2013時,想轉入MFC庫函式發現無法除錯MFC程式碼。VS2013提示如下: 網上查了一下才得知,VS2013不像以前的VS版本一樣自帶MFC的pdb檔案。但是微軟提供了Microsoft Symbol Server自動下載pdb檔案,只是預設情況下沒有開啟。開

git add .出錯解決方法

近期我和往常一樣準備提交更改,但是出現了下面這個提示,以前沒見過,然後我去查了一下,找到了解決方法 [[email protected] configure]# git add . warning: You ran 'git add' with neither '-A (--all)'

Unity匯出APk出錯解決方法

錯誤提示(需得開啟編輯器log檔案才能看到全部log,Unity3d只顯示一部分): Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console

Keil出錯解決方法

1、安裝KEIL5後建立工程後出現這個報錯   解決方法:開啟下圖目錄的檔案。 Keil.STM32F1xx_DFP.pdsc檔案是隻讀檔案,必須將只讀屬性取消。   如下圖所示,註釋掉紅色圓圈的哪一行,儲存退出,再開啟工程就不會報錯了。    

Ubuntu下報錯:處理軟體包 python-dnspython (--configure)時出錯 解決方法

原因: 在將python2升級到python3時,只是將/usr/local/bin目錄下修改了(使用ln -s 或者其他方式),然而我們的配置目錄並沒有修改。 解決方法: sudo apt-get clean sudo apt-get update sudo apt-get ins

MyEclipe匯入jquery出錯解決方法

MyEclipse提供比較嚴謹的js校驗功能,因此ExtJs、jQuery等前端框架匯入到MyEclipse後均會提示錯誤,只需將校驗 去掉即可 方法一: 1、在MyEclipse選擇選單欄window 2、選擇preferences 3、左側選單樹中展開myecl

maven編譯指定使用自己配置的jdk而不是eclipse自帶的解決方法

通常我們使用maven管理專案時,下載好專案後,需要使用maven eclipse:eclipse 命令把專案轉成eclipse識別的專案。 但是有的時候,程式碼中會使用了jdk中一些比較特殊的方法和類,但是eclipse自帶的jdk又沒有這些方法。所以導致每次都要給專案