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.

Bug 149697 - Debug File on .html broken
Summary: Debug File on .html broken
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 01:36 UTC by Martin Schovanek
Modified: 2011-01-28 20:12 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2008-10-10 01:36:18 UTC
[#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.
Comment 1 Martin Krauskopf 2008-10-10 08:32:27 UTC
I'm not sure where to pass this. Ruby modules are HTML filetype agnostic.
Comment 2 Marek Fukala 2008-10-10 09:18:39 UTC
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.
Comment 3 Quy Nguyen 2008-10-10 19:31:23 UTC
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).
Comment 4 Petr Jiricka 2008-10-11 05:48:03 UTC
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?
Comment 5 Erno Mononen 2008-10-13 09:40:22 UTC
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.
Comment 6 Martin Krauskopf 2008-10-13 12:43:11 UTC
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.
Comment 7 Quy Nguyen 2008-10-14 19:00:51 UTC
I also noticed that Run File for .html files does not work either.