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

Debugging autogenerated Sources

Hi everybody!

The same question I have asked about one week ago in the german asp.net
newsgroup, but no one was able to answer the question. Maybe someone is able
to in this group!
I currently developing a complex framework (based on ASP.Net 2.0), witch
uses features like ExpressionBuilders and Controls with ITemplate
Properties. By using this kind of functionality, I am able to control (a
part) of the ASP.Net generated Sources.

All works fine, I have no problem with the functionality itselft. But for
debugging it would be very very nice if I could debug the code witch has
been generated. For the CLR it so absolutly no problem to debug this
sources. The problem is the directives "#line ..."

Example:

--- File "App_Web_83dzbbkx.2.cs" ---

#line 37 "F:\...\default.aspx"
@ctrl.Text = System.Convert.ToString(... my custom expression from builder,
System.Globalization.CultureInfo.CurrentCulture);

#line default
#line hidden

--- EOF ---

It is not possible to set Breakpoints into the file. Single - Step through
is also not supported.

It is also a problem to find out witch "App_Web_xxxxxxxx.cs" file is
generted from for example "default.aspx". The only way to check (i don't
call this debugging), the expression that has been generated is to but an
error into the Expression (e.g. reference a variable that doesn't exists).
Then VS.Net reports the error in the autogenerated file.
It would be very, very, very cool if source - level debugging of the
autogenerated sources would be possible. Maybe someone out there knows a
possiblity to:

* configure that ASP.Net sould avoid rendering the "#line" directives

or

* set a debugger - option so that the debugger ignores the "#line"
directives. (I think that this is not possible, becaurse the #line
directives are compiled within the .pdb, right?)
I can hardly imagine, that there is no such functionality. What about the MS
development team for ASP.Net? I think that they also need debugging -
support. I think that they are using undocumented settings / configurations.
Maybe someone from the MS Team knows!
best regards,
Guenter Prossliner
Apr 4 '06 #1
0 1023

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

Similar topics

0
by: Edelwater | last post by:
Hello, I have (possibly) a framework related problem Or VS specific : Error while trying to run the project: unable to start debugging on the server. could not start asp.net or atl debugging....
3
by: Binny | last post by:
I have a DG with autogenerated columns. can i make a column readonly like the data key column. Thanks
8
by: Binny | last post by:
I have a DG with autogenerated columns. can i make a columns readonly like the data key column. when edititemindex is valid. Thanks
0
by: Luis Esteban Valencia | last post by:
Once a user clicks "add new row", a new row is created in my Datagrid. The datasource is huge so they have to scroll to the bottom of the page to edit the data in the new row. I have come across...
9
by: Steve | last post by:
How I can remove an AutoGenerated column? I wnat to inlcude the primary key in the resultset for creating some custom LinkButtons, but I don't want it (the PK) displayed in the DataGrid. I tried...
5
by: Egbert Nierop \(MVP for IIS\) | last post by:
hi, I have a testing win2003 machine, where I debug inside a MMC process using a DebugBreak() statement. But only the first time, source code was shown, after that, I only get to see...
1
by: Usman | last post by:
Hi, I have a simple visual basic 6 program that calls a function in a class written in C# assembly. Running executeable directly gives me no problem, debugging VB6 program is also working fine....
1
by: alberto | last post by:
Hi all, I have been using C# .NET for about 3 months now. I have been programming in other (Borland C++ Builder, Flash...) environments for years. I have to do a small application in WindowsCe,...
6
by: Jeff | last post by:
I understand there's socket / recursive calls here, but this is a C question, really it is: Here's the code block in question: #if defined(__GLIBC__) { struct hostent hent; char hbf;...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.