How to change background color of line highlightin

2019-03-22 19:15发布

问题:

how to change background color of line highlighting during debug process in Netbeans?

Tried to change "Highlight Caret Row". No success. It only changes bg color of line where cursor blinks, but not debugging line:

回答1:

Annotations Tab

Try the "Fonts & Colors" > "Annotions" tab.

Restart NetBeans (or re-open editors) for changes to take effect.



回答2:

Open Tools->Options->Fonts&Colors then go to "Annotations" tab. Color options for debug line in "Current Program Counter" item. It is works for me.



回答3:

There is a breakpoint selection in the Annotations tab.

Tools -> Options -> Fonts & Colors -> Annotations Tab -> Breakpoint

Change the background color of this.

Edit: Change all of the Current Program Counter categories too, all of them will be run into in various scenarios.



回答4:

You must restart Netbeans to changes takes effects



回答5:

If you don't see highlighted lines, it's possible that the project settings aren't configured correctly.

E.g. when using a htaccess redirect from the root folder to folder myapplication, be sure to edit Project->Properties->Sources->Web Root to the redirect folder.

That solved the issue for me.