[netbeans] branch master updated: Added support for exception breakpoints. #5434 Breakpoint_set and breakpoint_remove commands are used instead of breakpoint_update to change breakpoint state during d
This is an automated email from the ASF dual-hosted git repository. junichi11 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new 5f1c9da3c5 Added support for exception breakpoints. #5434 Breakpoint_set and breakpoint_remove commands are used instead of breakpoint_update to change breakpoint state during debugging. Fixed a bug where the previous breakpoint was displayed as the current breakpoint if the current breakpoint was not found. new d507933d27 Merge pull request #6366 from troizet/exception_breakpoint 5f1c9da3c5 is described below commit 5f1c9da3c5f11cde0cbe11d251dfbd892b6ba0e1 Author: Alexey Borokhvostov AuthorDate: Sun Apr 9 19:50:03 2023 +0700 Added support for exception breakpoints. #5434 Breakpoint_set and breakpoint_remove commands are used instead of breakpoint_update to change breakpoint state during debugging. Fixed a bug where the previous breakpoint was displayed as the current breakpoint if the current breakpoint was not found. --- php/php.dbgp/licenseinfo.xml | 2 + php/php.dbgp/nbproject/project.xml | 17 ++ .../org.netbeans.spi.debugger.ui.BreakpointType| 1 + .../php/dbgp/breakpoints/BreakpointModel.java | 28 ++- .../dbgp/breakpoints/BreakpointRuntimeSetter.java | 7 +- .../php/dbgp/breakpoints/BreakpointsReader.java| 35 +++- .../modules/php/dbgp/breakpoints/Bundle.properties | 1 + .../breakpoints/DbgpExceptionBreakpointType.java | 66 +++ .../php/dbgp/breakpoints/ExceptionBreakpoint.java | 44 + .../modules/php/dbgp/breakpoints/Utils.java| 3 + .../php/dbgp/packets/BrkpntCommandBuilder.java | 8 + .../modules/php/dbgp/packets/BrkpntSetCommand.java | 2 +- .../modules/php/dbgp/packets/InitMessage.java | 6 +- .../netbeans/modules/php/dbgp/resources/class.png | Bin 0 -> 785 bytes .../netbeans/modules/php/dbgp/resources/layer.xml | 6 + .../modules/php/dbgp/resources/php16Key.png| Bin 0 -> 589 bytes .../netbeans/modules/php/dbgp/ui/Bundle.properties | 3 + .../php/dbgp/ui/DbgpExceptionBreakpointPanel.form | 101 ++ .../php/dbgp/ui/DbgpExceptionBreakpointPanel.java | 143 ++ .../completion/ExceptionClassNbDebugEditorKit.java | 31 +++ .../ui/completion/ExceptionCompletionItem.java | 210 + .../ui/completion/ExceptionCompletionProvider.java | 136 + 22 files changed, 832 insertions(+), 18 deletions(-) diff --git a/php/php.dbgp/licenseinfo.xml b/php/php.dbgp/licenseinfo.xml index bc74327931..e2e85decee 100644 --- a/php/php.dbgp/licenseinfo.xml +++ b/php/php.dbgp/licenseinfo.xml @@ -21,7 +21,9 @@ --> +src/org/netbeans/modules/php/dbgp/resources/class.png src/org/netbeans/modules/php/dbgp/resources/notice-glyph.gif +src/org/netbeans/modules/php/dbgp/resources/php16Key.png src/org/netbeans/modules/php/dbgp/resources/undefined.gif diff --git a/php/php.dbgp/nbproject/project.xml b/php/php.dbgp/nbproject/project.xml index 52a8070579..f5f5b12b93 100644 --- a/php/php.dbgp/nbproject/project.xml +++ b/php/php.dbgp/nbproject/project.xml @@ -87,6 +87,15 @@ 1.58 + + org.netbeans.modules.editor.completion + + + +1 +1.67 + + org.netbeans.modules.editor.document @@ -149,6 +158,14 @@ 9.0 + + org.netbeans.modules.parsing.indexing + + + +9.31 + + org.netbeans.modules.php.api.executable diff --git a/php/php.dbgp/src/META-INF/debugger/org.netbeans.spi.debugger.ui.BreakpointType b/php/php.dbgp/src/META-INF/debugger/org.netbeans.spi.debugger.ui.BreakpointType index 11de7f04d4..f5d02c2d83 100644 --- a/php/php.dbgp/src/META-INF/debugger/org.netbeans.spi.debugger.ui.BreakpointType +++ b/php/php.dbgp/src/META-INF/debugger/org.netbeans.spi.debugger.ui.BreakpointType @@ -1 +1,2 @@ org.netbeans.modules.php.dbgp.breakpoints.DbgpFunctionBreakpointType +org.netbeans.modules.php.dbgp.breakpoints.DbgpExceptionBreakpointType diff --git a/php/php.dbgp/src/org/netbeans/modules/php/dbgp/breakpoints/BreakpointModel.java b/php/php.dbgp/src/org/netbeans/modules/php/dbgp/breakpoints/BreakpointModel.java index 339522e91a..aea90c8684 100644 --- a/php/php.dbgp/src/org/netbeans/modules/php/dbgp/breakpoints/BreakpointModel.java +++
[netbeans-website] branch master updated: Try to fix the table.
This is an automated email from the ASF dual-hosted git repository. mbien pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-website.git The following commit(s) were added to refs/heads/master by this push: new 1e9cf3711 Try to fix the table. new 2f148abef Merge pull request #678 from mbien/fix-code-inspect-page 1e9cf3711 is described below commit 1e9cf37119e4b662f37f27ee0a59218e17ac27a0 Author: Michael Bien AuthorDate: Wed Aug 30 14:18:13 2023 +0200 Try to fix the table. --- netbeans.apache.org/src/content/kb/docs/java/code-inspect.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbeans.apache.org/src/content/kb/docs/java/code-inspect.adoc b/netbeans.apache.org/src/content/kb/docs/java/code-inspect.adoc index 20d048e73..aa390b6d5 100644 --- a/netbeans.apache.org/src/content/kb/docs/java/code-inspect.adoc +++ b/netbeans.apache.org/src/content/kb/docs/java/code-inspect.adoc @@ -42,7 +42,7 @@ In this tutorial, you will learn how to perform static analysis of your Java cod |Software or Resource |Version Required |link:https://web.archive.org/web/20131021173103/https://netbeans.org/project_downloads/samples/Samples/Java/library.zip[library.zip] |NetBeans project - +|=== == Setting Up the Tutorial Environment - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans-website] branch master updated: Removed references to the SpotBugs plugin and JSR305 since the plugin is no longer available.
This is an automated email from the ASF dual-hosted git repository. mbien pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-website.git The following commit(s) were added to refs/heads/master by this push: new 7cc387170 Removed references to the SpotBugs plugin and JSR305 since the plugin is no longer available. new 1b1828189 Merge pull request #677 from stroudcuster/stroudcuster-remove-spotbugs-refs 7cc387170 is described below commit 7cc38717086cfd88cc7a6ba61a5f8e7477c9ede3 Author: Stroud Custer AuthorDate: Sun Aug 27 18:00:44 2023 -0400 Removed references to the SpotBugs plugin and JSR305 since the plugin is no longer available. --- .../src/content/kb/docs/java/code-inspect.adoc | 124 + 1 file changed, 3 insertions(+), 121 deletions(-) diff --git a/netbeans.apache.org/src/content/kb/docs/java/code-inspect.adoc b/netbeans.apache.org/src/content/kb/docs/java/code-inspect.adoc index c11b00fb4..20d048e73 100644 --- a/netbeans.apache.org/src/content/kb/docs/java/code-inspect.adoc +++ b/netbeans.apache.org/src/content/kb/docs/java/code-inspect.adoc @@ -32,7 +32,7 @@ The NetBeans IDE Java Editor has a static code analysis feature, which is a tool for finding potential problems and detecting inconsistencies in your source code. -In this tutorial, you will learn how to perform static analysis of your Java code using FindBugs and NetBeans Java Hints without actually running your applications. +In this tutorial, you will learn how to perform static analysis of your Java code using NetBeans Java Hints without actually running your applications. == Requirements @@ -43,17 +43,6 @@ In this tutorial, you will learn how to perform static analysis of your Java cod |link:https://web.archive.org/web/20131021173103/https://netbeans.org/project_downloads/samples/Samples/Java/library.zip[library.zip] |NetBeans project -|link:http://repo1.maven.org/maven2/com/google/code/findbugs/jsr305/2.0.0/jsr305-2.0.0.jar[jsr305-2.0.0.jar] |Java Specification Request intended to improve the effectiveness of static analysis tools -|=== - -NOTE: ``jsr305-2.0.0.jar`` is included into ``library.zip`` for the purposes of this tutorial. - -If using another NetBeans project, link:http://repo1.maven.org/maven2/com/google/code/findbugs/jsr305/2.0.0/jsr305-2.0.0.jar[+jsr305-2.0.0.jar+] should be downloaded and added to the Libraries folder of the your project in the IDE as follows: -[lowerroman, start=1] -. Right-click the Libraries folder and choose the Add JAR/Folder from the popup menu. -. In the Add JAR/Folder dialog box, specify the path to the downloaded ``jsr305-2.0.0.jar`` file and click Open. - -image::images/jar.png[] == Setting Up the Tutorial Environment @@ -61,38 +50,12 @@ In addition to the required software listed above you should have the following * The link:https://web.archive.org/web/20131021173103/https://netbeans.org/project_downloads/samples/Samples/Java/library.zip[library.zip] file should be unzipped into your NetBeans project folder and opened in the NetBeans IDE. -The FindBugs plugin should be downloaded and installed into the NetBeans IDE as follows: - -[arabic, start=1] -. Choose Source > Inspect from the main IDE's menu. -. In the Inspect dialog box, click Install. - -[.feature] --- - -image::images/inspect-small.png[role="left", link="images/inspect.png"] - --- -[start=3] -. In the Installer dialog box, click Next to proceed with the installation. - -[.feature] --- - -image::images/plugin-small.png[role="left", link="images/plugin.png"] - --- -[start=4] -. Review the license agreement, select the license agreement option, and click Install. -. When the installation is complete, click Finish. - == Using Predefined Configurations You can use the following predefined configurations when inspecting your code in the NetBeans IDE: * <> * <> -* <> * <> [[all]] @@ -113,8 +76,6 @@ image::images/allconfig-small.png[role="left", link="images/allconfig.png"] -- -NOTE: You need to install the <> plugin to run this configuration for the first time. - [start=4] . Click Inspect. The results of the analysis are displayed in the Inspector Window as a tree view on the left. @@ -193,85 +154,6 @@ a|image:images/categorizebutton.png[] | *Categorize* |Toggles the collapsed view of the problems detected in a file, project, or package or the categorized view of all the detected problems. |=== -[[fb]] -=== Finding Potential Problems in Java Code with FindBugs - -The ``FindBugs`` configuration available in the IDE enables you to find a wide range of potential problems in your code. It invokes the popular open source FindBugs tool for code analysis in Java. The bug report gets generated and is displayed in the Inspector Window of the NetBeans IDE, which categorizes all the found problems and allows direct navigation from the bugs in the report to the suspicious