Questions tagged [script-debugging]
39 questions
461
votes
7 answers
How to search all loaded scripts in Chrome Developer Tools?
In Firebug, you can search some text and it will look for it in all scripts loaded on a page. Can the same be done in Chrome Developer tools while debugging client script? I tried it, but it seems to search only in the script I have open, and not…

Slavo
- 15,255
- 11
- 47
- 60
82
votes
4 answers
PowerShell "echo on"
This is a duplicate of https://serverfault.com/questions/102098/powershell-script-showing-commands-run. I thought it would be more appropriate to ask this question here.
I am playing around with PowerShell scripts and they're working great.…

Nelson Rothermel
- 9,436
- 8
- 62
- 81
44
votes
4 answers
Google Chrome Javascript Debugger and Content Scripts
This question has been asked similarly before, but I can't seem to debug Javascript in Google Chrome.
If I go to Page > Developer the "Debug Javascript" (Ctrl+Shift+L) is disabled. Alt + ` doesn't work.
I'm developing a 'content script' extension…

Clayton Hughes
- 1,015
- 2
- 9
- 22
38
votes
11 answers
Firebug - Breakpoint doesn't hit
I am setting breakpoints in an external JS file and I haven't been able to get Firebug hit the breakpoint in a consistent way. It works sometimes but most of the times it doesn't. The only way I can get it to work is by switching on "Break on all…

DotnetDude
- 11,617
- 35
- 100
- 158
14
votes
6 answers
Debugging Python within Ableton Live
How can I see script errors for my python MIDI Remote Scripts in Ableton Live? I've seen references online to a hidden Python console, but no documentation on how to open it, if it would even help me!
Currently I type code, reload the script, and…

Brad
- 159,648
- 54
- 349
- 530
10
votes
2 answers
How do I check if the python debug option is set from within a script
If I'm in debug mode, I want to do other stuff than when I'm not.
if DEBUG:
STORED_DATA_FILE = os.path.join(TEMP_DIR, 'store.dat')
LOG_LEVEL = logging.DEBUG
print "debug mode"
else:
STORED_DATA_FILE = os.path.join(SCRIPT_PATH,…

user132262
- 1,837
- 4
- 16
- 17
8
votes
2 answers
debugging a shared library wrapped by SWIG in perl
I have wrapped my C/C++ code using SWIG in Perl. I have few segmentation fault because of the wrapped code. I am trying to use ddd with the Perl script but unfortunately even if I set a breakpoint on a line of the script ( the one calling C/C++ code…

Abruzzo Forte e Gentile
- 14,423
- 28
- 99
- 173
8
votes
5 answers
KornShell - Set "-x" (debug) flag globally?
Is there a way to set the debug mode (set -x) on a KornShell (ksh) script globally? Currently it seems I have do something like the following:
a(){
set -x
#commands
}
b(){
set -x
#more commands
}
set-x
a
#commands
b
I would really…

C. Ross
- 31,137
- 42
- 147
- 238
7
votes
11 answers
How Do I Shut Off Visual Studio 2008 Script Debugging
If I launch an ASP.NET project, using Visual Studio 2008 and Internet Explorer, Visual Studio starts script debugging. I get a Script Documents node with a child node of Windows Internet Explorer and Default.aspx with a bazillion anonymous code…

Joshua Belden
- 10,273
- 8
- 40
- 56
7
votes
1 answer
javascript debugging gets into VM**** file how to blackbox these files?
When debugging JS using chrome development tool, while using step into next function(ctrl + ;). I'm getting into file names like VM****. Is there a way to get rid of this?

sree
- 105
- 1
- 12
7
votes
1 answer
Powershell "Set-PSDebug -Trace 2" causes unexpected results
I'm having a weird problem where I get different behavior when setting "Set-PSDebug -Trace 2".
I traced it down to a switch statement not executing properly and was able to reproduce it on Powershell V3 but not on Powershell V2 or Powershell V1…

The Unique Paul Smith
- 636
- 2
- 8
- 22
6
votes
2 answers
Line and column in Javascript Error event attributes
I've decided that there are some errors which I don't want to go to the browser error handler. But I still want to know about them. In my actual code I have a function which stores the errors in a hidden element and ajax submits them to a…

Luke
- 435
- 4
- 12
6
votes
1 answer
How to turn on Pause On Uncaught Exceptions in Google Chrome Canary?
In this article it talks about turning on pausing on uncaught exceptions.
https://developer.chrome.com/devtools/docs/javascript-debugging
I can only see Pause On Caught Exceptions in both Chrome and Canary. I'm using Chrome Canary Version…

dfdumaresq
- 1,618
- 4
- 17
- 22
5
votes
1 answer
Is there a way to have real time stack trace in PHP with apache?
Here's my problem: I have to debug a Wordpress theme with a lot of dependencies (that I don't know) and no documentation/comments because I need to edit it by adding some features.
So the question is: is there a way to access to real time stack…

Kalizi
- 457
- 7
- 21
5
votes
2 answers
Debugging an AutoIt script or get currently executed script line number
My AutoIt script sends a list of clicks and key-presses to automate an old closed source application.
It has bugs so I want to know how I can debug AutoIt scripts. Or at least output the script's line number (to show code executed in real time).
user3131905