The line number (position) of a line of text or code inside a file, often for debugging.
Questions tagged [line-numbers]
369 questions
5
votes
1 answer
VB.NET and ASP.NET DLL line numbers don't appear in production error logs
I can see line numbers in my error logs in our development environment, in which VB.NET 2005 and ASP.NET components are compiled in debug mode, with PDB files copied to the server on deployment.
I don't see line numbers in production, where things…

Caveatrob
- 12,667
- 32
- 107
- 187
5
votes
0 answers
How can I get a line number for "Unexpected syntax error: Unexpected token c"?
I'm working on a page and getting "Unexpected syntax error: Unexpected token c" attributed to line 1 of an empty index.
I want to double check that JSON values are valid, but what is the best way to get to the bottom of a line number for "there is a…

Christos Hayward
- 5,777
- 17
- 58
- 113
5
votes
2 answers
exception.lineNumber returns "undefined" in google chrome and internet explorer
I need to get fileName, Message, LineNumber etc from a javascript exception. I tried the following code.
try {
alertt("dddd");
} catch (e) {
console.log("ExceptionType: "+ e.name);
console.log("Message: "+ e.message);
console.log("Line No:…

Sajith
- 2,842
- 9
- 37
- 49
5
votes
6 answers
HTML/CSS/JS: How to make an illusion of a textarea with line numbers?
I want to have a textarea which displays line numbers on the left. Wrap should be set to "off" (so that horizontal scrolling is available). I want to have my page as a single self-contained .html file (there will be no graphics), so I'd like to…

Vilx-
- 104,512
- 87
- 279
- 422
5
votes
1 answer
Why are Perl's $. and $ARGV behaving strangely after setting @ARGV and using <>
I wrote a perl program to take a regex from the command line and do a recursive search of the current directory for certain filenames and filetypes, grep each one for the regex, and output the results, including filename and line number. [ basic…

Colin
- 2,089
- 25
- 34
5
votes
2 answers