久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用 Eclipse 檢查調(diào)試符號狀態(tài)?

How can I check on debug symbol status with Eclipse?(如何使用 Eclipse 檢查調(diào)試符號狀態(tài)?)
本文介紹了如何使用 Eclipse 檢查調(diào)試符號狀態(tài)?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

在討論另一個問題時 我問了,@Aaron Digulla 指出了以下幾點:

While discussing another question I asked, @Aaron Digulla pointed out the following:

如果您安裝了 Java SDK,Java 安裝的根目錄中應(yīng)該有一個src.zip"文件.如果丟失,請重新下載 Java.當(dāng)您打開 JTable 類型(或單擊堆棧跟蹤中的行)時,Eclipse 應(yīng)該會自動找到源并顯示給您.

If you installed the Java SDK, there should be a "src.zip" file in the root directory of the Java installation. If it's missing, download Java again. Eclipse should find the source automatically and show it to you when you open the type JTable (or when you click on the line in the stack trace).

文件 src.zip 對我來說是存在的,但我仍然無法像@Aaron 所說的那樣訪問 JTable 的源代碼.可能是什么問題呢?如何用 Eclipse 解決這個問題?

The file src.zip is present for me, but I still can't access the source of JTable like @Aaron said. What could be the problem? How can I solve this with Eclipse?

未知來源"讓我擔(dān)心,盡管.這意味著您的 Java 版本沒有調(diào)試符號.確保你 a) 在使用 SDK 時開發(fā),b)您的 SDK 包含調(diào)試符號,c) 不要告訴命令 java 去除調(diào)試符號當(dāng)它加載類時.

The "Unknown Source" worries me, though. it means your version of Java doesn't have debug symbols. Make sure that you a) use a SDK while developing, b) that your SDK contains debug symbols, c) don't tell the command java to strip debug symbols when it loads classes.

a) 我使用的是 Eclipse,為什么我不應(yīng)該使用 SDK?

a) I'm using Eclipse, why shouldn't I being using SDK?

b) 我如何知道我的 SDK 是否包含調(diào)試符號?如果沒有,我該如何添加它們?

b) How do I know if my SDK contains debug symbols? And if it doesn't, how can I add them?

c) 我如何檢查 Eclipse 是否告訴 java 去除調(diào)試符號?

c) How can I check if Eclipse is telling java to strip debug symbols?

很抱歉這些老生常談的問題,但我覺得我對 Java 開發(fā)過程并不完全了解.

Sorry for these banal questions, but I feel like I don't fully understand the Java development process.

推薦答案

a) Eclipse 自帶 Java 編譯器,所以如果你使用 Java Runtime Environment,你不會遇到很多問題,除了額外的像jarsigner 和可能的 JRE 源代碼可能會丟失.驗證安裝的最佳方法是通過包管理器;但是,如果您通過其他方式安裝,仔細(xì)觀察目錄通常可以區(qū)分兩者(見下文).

a) Eclipse comes with it's own Java compiler, so if you are using the Java Runtime Environment, you won't run into many issues, except that extras like jarsigner and possibly the JRE source code may be missing. The best way to verify your installation is through your package manager; however, if you installed by some other means, careful directory observation can usually differentiate the two (see below).

b) JRE 庫通常在不存在調(diào)試符號的情況下編譯.SDK 庫通常有它們.Java 調(diào)試是通過使用打開調(diào)試端口的命令行選項啟動 JVM 來完成的.SDK 與 JVM 對話,請求通過此端口設(shè)置斷點.稍后如果您決定單步執(zhí)行 JVM,它還會通過此端口發(fā)送單步/跳轉(zhuǎn)/倒帶調(diào)試命令.調(diào)試"符號實際上是 JVM 字節(jié)碼表,它引用從特定字節(jié)碼指令開始的有效源代碼行.這允許調(diào)試器將正在運行的字節(jié)碼與原始源代碼中的行號相關(guān)聯(lián).

b) JRE libraries are typically compiled without debugging symbols present. SDK libraries typically have them. Java debugging is done by starting the JVM with command line options which open a debugging port. The SDK talks to the JVM requesting breakpoints be set through this port. Later if you decide to step the JVM, it also sends the step / jump / rewind debugging commands through this port. The "debugging" symbols are actually JVM bytecode tables, which reference which line of source code is in effect starting at a particular bytecode instruction. This allows debuggers to associate the running bytecodes with line numbers in the original source code.

c) 通過(從菜單中)Window->Preferences(在選擇器列上)展開Java",展開Java"下的Build Path",然后選擇ClassPath variables"來驗證它.您將看到一些變量,包括一個名為JRE_SRC"的變量,它應(yīng)該指向包含面向公眾的 JRE 庫源代碼的 src.zip 文件.同時驗證 JRE_LIB 是個好主意.

c) Verify it by (from the menu) Window->Preferences (on the selector column) expand "Java", expand "Build Path" under "Java", and select "ClassPath variables". You will see a few variables, including one called "JRE_SRC", which should point to the src.zip file containing the public facing JRE library source code. It is a good idea to verify JRE_LIB at the same time.

JDK 主目錄通常包含一個bin"子目錄和一個jre"子目錄,因此如果您只看到一個bin"子目錄,則很有可能您位于 JRE 主目錄中.有了這些知識,希望您能夠解決剩下的問題.

A JDK home directory typically contains a "bin" sub-directory and a "jre" sub-directory, so if you only see a "bin" sub-directory, odds are good you are in a JRE home directory. With this knowledge, hopefully you'll be able to figure the rest out.

這篇關(guān)于如何使用 Eclipse 檢查調(diào)試符號狀態(tài)?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Why would you choose Android API over Google APIs in the SDK on Eclipse?(為什么在 Eclipse 的 SDK 中選擇 Android API 而不是 Google API?)
Couchbase Bucket authentication error(Couchbase 存儲桶身份驗證錯誤)
admob 6.2.1 nullpointer exception(admob 6.2.1 空指針異常)
How to setup SDK in IntelliJ IDEA?(如何在 IntelliJ IDEA 中設(shè)置 SDK?)
My phone cannot be detected in eclipse to test run(eclipse 無法檢測到我的手機(jī)進(jìn)行試運行)
platform-toolsaapt.exe directory missing in android SDK(android SDK 中缺少 platform-toolsaapt.exe 目錄)
主站蜘蛛池模板: 在线视频国产一区 | 国产日韩精品视频 | 欧美日韩中文在线观看 | 91精品久久久久久久 | 国产精品99久久久久久久久久久久 | 日韩三级一区 | 国产精品亚洲二区 | 中文在线一区二区 | 视频一区在线观看 | 欧美一区二区三区一在线观看 | 中文字幕亚洲一区 | 久久国产区 | 午夜激情一区 | 久草资源网站 | 一级片在线视频 | 成人在线网 | 国产精品无码专区在线观看 | 91极品视频| 久久久久久久久一区 | 午夜精品一区二区三区免费视频 | 亚洲精品一区二区三区免 | 欧区一欧区二欧区三免费 | 国产小视频在线 | 亚洲第一天堂 | 超碰导航 | 国产日韩91 | 拍真实国产伦偷精品 | 亚洲一区国产精品 | av免费电影在线 | 成年人视频免费在线观看 | 国产2区| 日本一区二区三区在线观看 | 天天拍夜夜爽 | 中文字幕第一页在线 | 91精品国产一区二区在线观看 | 97国产一区二区精品久久呦 | 国产精品久久久久久久粉嫩 | 亚洲国产一区二区三区 | 一区2区 | 亚洲午夜网 | 国产精品亚洲一区 |