473,395 Members | 1,679 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,395 software developers and data experts.

How to access Locals, Autos...programmatically?

Hi,

How can I can access all the debugger aids (like Autos, Locals, Me (This),
MemoryLists, Threads, Modules, Registers) programmatically? I want too use
them in my program to log the exact picture of the error and its condition
like the values of the each variable etc. when an error occurs in my
program. While running my program I want to dump the memory contents to a
log file. At least if I can access them while in development (Debug version)
of them program will do.

Thanks in advance.

Regards,
....Ashok

Nov 21 '05 #1
3 953
check System.Diagnostics namespace

"G.Ashok" <gw******@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP14.phx.gbl...
Hi,

How can I can access all the debugger aids (like Autos, Locals, Me (This),
MemoryLists, Threads, Modules, Registers) programmatically? I want too use
them in my program to log the exact picture of the error and its condition
like the values of the each variable etc. when an error occurs in my
program. While running my program I want to dump the memory contents to a
log file. At least if I can access them while in development (Debug
version)
of them program will do.

Thanks in advance.

Regards,
...Ashok

Nov 21 '05 #2
Abhijeet,

Thanks for reply, but it doesn't seem the System.Diagnostics has this
functionality. Can you please point out this? Autos, Locals, memory Lists,
Registers...

Regards,
....Ashok
"Abhijeet Dev" <ms****@abhijeet-dev.net> wrote in message
news:u6**************@tk2msftngp13.phx.gbl...
check System.Diagnostics namespace

"G.Ashok" <gw******@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP14.phx.gbl...
Hi,

How can I can access all the debugger aids (like Autos, Locals, Me (This), MemoryLists, Threads, Modules, Registers) programmatically? I want too use them in my program to log the exact picture of the error and its condition like the values of the each variable etc. when an error occurs in my
program. While running my program I want to dump the memory contents to a log file. At least if I can access them while in development (Debug
version)
of them program will do.

Thanks in advance.

Regards,
...Ashok


Nov 21 '05 #3
Im interested in this too, anyone know if its possible to extract locals
during a catch block?
"G.Ashok" <gw******@hotmail.com> wrote in message
news:u0**************@TK2MSFTNGP14.phx.gbl...
Abhijeet,

Thanks for reply, but it doesn't seem the System.Diagnostics has this
functionality. Can you please point out this? Autos, Locals, memory Lists,
Registers...

Regards,
...Ashok
"Abhijeet Dev" <ms****@abhijeet-dev.net> wrote in message
news:u6**************@tk2msftngp13.phx.gbl...
check System.Diagnostics namespace

"G.Ashok" <gw******@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> How can I can access all the debugger aids (like Autos, Locals, Me (This), > MemoryLists, Threads, Modules, Registers) programmatically? I want too use > them in my program to log the exact picture of the error and its condition > like the values of the each variable etc. when an error occurs in my
> program. While running my program I want to dump the memory contents to a > log file. At least if I can access them while in development (Debug
> version)
> of them program will do.
>
> Thanks in advance.
>
> Regards,
> ...Ashok
>
>
>



Nov 21 '05 #4

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

Similar topics

2
by: tedsuzman | last post by:
----- def f(): ret = 2 exec "ret += 10" return ret print f() ----- The above prints '12', as expected. However,
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
2
by: G.Ashok | last post by:
Hi All, I'm posting this again! How can I can access all of the debugger aids (like Autos, Locals, Me (This), MemoryLists, Threads, Modules, Register) programmatically? I want to use them in...
2
by: krallabandi | last post by:
Do you have any idea about the below errors? Access to the path "C:\DOCUME~1\P005715\ASPNET\LOCALS~1\Temp\cumhnc6b.cmdline" is denied. Access to the path...
17
by: GinTon | last post by:
How to access to a variable (that value is not returned) from a module imported? And the variable is set at the module-level. That module is external to my program, it's from another project so...
5
by: robinsiebler | last post by:
I have a data structure that looks like this: # dates = {'2007': {'25': {'06/23/07': {'aerosmith': , # 'Metallica': }, # 'last_song': }}}...
2
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I want to give a user the possibility of "restarting" an interactive session, by removing all the objects defined by her since the beginning. The way I make this possible is by having a "function"...
6
by: SanPy | last post by:
The subject of this message might be a little cryptic, so here's an example of what I mean: def foo(): """doc string of foo""" print foo.__doc__ doc string of foo What I want to know is...
6
by: John [H2O] | last post by:
I would like to write a function to write variables to a file and modify a few 'counters'. This is to replace multiple instances of identical code in a module I am writing. This is my approach:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.