Closed Bug 1109867 Opened 10 years ago Closed 10 years ago

Error: could not find debugger None

Categories

(Testing :: Mochitest, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla37

People

(Reporter: jdm, Assigned: ankit.goyal90, Mentored)

Details

(Whiteboard: [lang=python][good first bug])

Attachments

(1 file)

This looks like it should be simple to fix. When I run any test using `./mach mochitest path/to/test.html` I see "Error: could not find debugger None" show up in the output. This looks like mozdebug.py is at fault: http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/mozdebug/mozdebug/mozdebug.py#105
I would like to work on it.
Go ahead! Let me know if anything is unclear!
I am not getting any error. My test ran fine.
Are you using the latest Nighty build?
Yes, I just pulled the last from mozilla-central yesterday when I filed this. >godot2:mozilla-central jdm$ ./mach mochitest dom/tests/mochitest/bugs/test_DOMWindowCreated_chromeonly.html >From _tests: Kept 33877 existing; Added/updated 0; Removed 0 files and 0 directories. >SUITE-START | Running 1 tests >Error: Could not find debugger None. >pk12util: PKCS12 IMPORT SUCCESSFUL >MochitestServer : launching [u'/Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/dist/bin/xpcshell', '-g', u'/Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/dist/NightlyDebug.app/Contents/Resources', '-v', '170', '-f', u'/Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/dist/bin/components/httpd.js', '-e', "const _PROFILE_PATH = '/var/folders/m7/9_hs2jb12kl4h0ww513v96cw0000gn/T/tmpGJtaHn.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = true;", '-f', '/Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/_tests/testing/mochitest/server.js'] >runtests.py | Server pid: 692 >runtests.py | Websocket server pid: 693 >runtests.py | SSL tunnel pid: 694 >[692] WARNING: Re-registering a CID?: file /Users/jdm/src/mozilla-central/xpcom/components/nsComponentManager.cpp, line 531 >JavaScript warning: /Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/_tests/testing/mochitest/server.js, line 14: JavaScript 1.7's let blocks are deprecated >runtests.py | Running tests: start.
It's not an actual error that prevents anything, but it's confusing.
Okay, I am able to reproduce the error. Working on it.
Try this: ./mach mochitest --debugger=gdb dom/tests/mochitest/bugs/test_DOMWindowCreated_chromeonly.html `debugger` is being sent as a python keyword argument by shell script. If you want, I can create a patch by setting default `debugger` value from `None` to `gdb`.
No, that's not the right solution here. It looks like some (but not all) of the callers of get_debugger_info check for debugger being None; let's make all of them do it.
Okay, there are 11 callers. http://mxr.mozilla.org/mozilla-central/search?string=get_debugger_info%28&case=1&find=&findi=&filter=&hitlimit=&tree=mozilla-central We can put a check in these functions before calling get_debugger_info()
Now tests are okay
Attachment #8535641 - Flags: review?(gps)
Comment on attachment 8535641 [details] [diff] [review] Put checks at relevant callers Review of attachment 8535641 [details] [diff] [review]: ----------------------------------------------------------------- This looks good to me. I'll land this momentarily. Thanks for the fix!
Attachment #8535641 - Flags: review?(gps) → review+
Assignee: nobody → ankit.goyal90
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: