473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

debug information/ meta coding in javascript

Hi
I'm after information on the hard stuff in javascript (no, not alt.binaries...)

(1) Is there anyway of tracing calls in javascript. Ideally I'd have a
background function, periodically popping up via setTimeout and it would
be able to say something like, browser.javascriptCalls[0], or..
On every javascript call of any kind have another method called which could
then identify the caller and trace it

(2) Can I determine the methods and data of any object in javascript
somehow?

Thanks

F
Jul 20 '05 #1
2 1182
fo******@yahoo.co.uk writes:
Hi
I'm after information on the hard stuff in javascript (no, not alt.binaries...)

(1) Is there anyway of tracing calls in javascript.
Not generally. Different browsers have different extensions to
Javascript that might allow that. I am not sure how, but the Venkman
debugger for Gecko browsers has breakpoints, so something must be
possible.
(2) Can I determine the methods and data of any object in javascript
somehow?


Not all of it. Propertie of objects can be set "don't enumerate". Only
original propertie (like the toString property of Object.prototype)
are note enumerable. All properties you add yourself will be enumerate.
You can go through all the enuymerable properties of an object with
the for(in) construction:
for (propertyName in objectRef) {
... objectRef[propertyName] ...
}
Again, there might be proprietary methods for accessing the
non-enumerable properties, but it is not part of Javascript core.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
> (1) Is there anyway of tracing calls in javascript. Ideally I'd have a
background function, periodically popping up via setTimeout and it would
be able to say something like, browser.javascriptCalls[0], or..
On every javascript call of any kind have another method called which could
then identify the caller and trace it

(2) Can I determine the methods and data of any object in javascript
somehow?


No. Certainly not with setTimeout, which only runs when the interpreter
is idle. What is it that you hope to accomplish?
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Dan Perl | last post by:
Is there a mechanism or an idiom for adding code for debugging so that it can easily be removed in the production code? I am thinking of something similar to the C/C++ preprocessor statements with...
2
by: news frontiernet.net | last post by:
I have key entered and tried to run example 4-6 from Dany Goodmans DYNAMIC HTML book, version one that is on pages 94-96. This is part of my effort to learn JavaScript. I checked each byte and...
1
by: Robert | last post by:
Simple way of writing debug print statements in your JavaScript code. You need to have enabled popups in your browser. I liked the ability to write to the java console in Netscape 4.x. This,...
14
by: Shiperton Henethe | last post by:
Hi Is there anyway to get a meta refresh to do so in an new browser window? e.g. This code forwards this user after 8 seconds... <meta http-equiv=refresh...
8
by: Roundy | last post by:
My task seems so simple, but I can't seem to determine how to do what I want to do. I have a text file that has two lines in it, the first line gives item labels, my second line gives values for...
2
by: name | last post by:
The piece of code is for a Web Form Page. Who can tell me why? Thanks a lot! ------------------------------------------------ VB.Net Code: Protected Overrides Sub AddParsedSubObject(ByVal obj As...
2
by: thetechturf.com | last post by:
I have some simple dynamic content pages (included below). I need to know how to add specific meta tags (ie. description, keywords, ect.), as well as extra specific header coding to a page. I would...
5
by: thallasridevi | last post by:
Hello, I am trying to get system information. I found a script. When i tried it, it is working in internet explorer. But it is not working with mozilla. I think problem is with below statement as...
4
by: bhood2 | last post by:
I've come to the conclusion that posting about Embedded Python on the Python forums is a complete waste of time. I hope I can get some useful insights here. I'm looking for some help with...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.