This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[#200810090201, jdk1.5.0] to reproduce: ------------- 1) have a Rails project 2) create a .html with embedded JavaScript 3) right-click the .html at Project View and choose 'Debug File' ERROR: IDE does nothing NOTE: The .html debugging have sense since Nb introduced JavaScript debugger, eg. it works for Web Projects.
I'm not sure where to pass this. Ruby modules are HTML filetype agnostic.
html module has nothing to do with debugging. I guess it is javascript module who adds the debug action and enables the debugging on html files, although I am not sure.
The Debug File action for html files is in the layer for project.ui and references an action defined in web.project. I suppose it was originally implemented there to allow someone to debug an HTML file that can eventually navigate to some JSP that can be debugged. In any case, the immediate issue is that rails module is html agnostic, so it does not handle the Debug File action correctly when it is invoked on non-Ruby files. For the sake of consistency, it should probably launch the javascript debugger in this case (PHP and Web projects debug normally when selecting Debug File).
Hi Quy, since you know what needs to happen to enable JavaScript debugging, would you be able to provide a patch that Erno would integrate?
A patch would be much appreciated indeed, at least if we want to fix this for 6.5 -- I'm not familiar with the JavaScript debugger impl and don't want to introduce regressions at this point. Anyway, since this was filed after the cut-off date and doesn't seem like a show stopper to me, I'm setting the target milestone to 7.0 for now.
How many Ruby developers tries to debug .html files? They usually debug whole Rails project or ERB or Ruby file. P2 is overkill here -> P3.
I also noticed that Run File for .html files does not work either.