473,785 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 ExpressionBuild ers 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_83dzbb kx.2.cs" ---

#line 37 "F:\...\default .aspx"
@ctrl.Text = System.Convert. ToString(... my custom expression from builder,
System.Globaliz ation.CultureIn fo.CurrentCultu re);

#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_xxxxxx xx.cs" file is
generted from for example "default.as px". 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 1045

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

Similar topics

0
1753
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. Verify that ASP.NET or ATL Server is correctly installed on the Server. This occurs when i want to try to debug a project in Visual Studio. I
3
1440
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
1840
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
1746
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 two EE solutions which use javascript to focus on the textbox in the "editcommandcolumn" mode. However, these solutions were made for non-autogenerated columns. I NEED autogenerated columns for my project. Is it possible to give focus to a...
9
6107
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 searching the columnheader text, but found that AutoGenerated columns are members of the Columns collection. From the msdn documentation: Note: When the AutoGenerateColumns property is set to true, the columns created by the DataGrid control are...
5
2437
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 disassembly while I -did- install a debug DLL + PDB and the .CPP's in the same directory. I have installed visual studio 2005 without installing any language, so no
1
2204
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. However, when I try to debug C# assembly with VB6 program, VB6 program simply crashes upon trying to create C# class object. I am attaching the VB6 and C# sources for reference,
1
1393
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, using MS Sql ServerCe, with datagrids, updates etc. I started using the autogenerated code with blablaBindingSource and blablaDataSet etc, and was discouraged by the complexity. I then started reading some books on how to without autogenerated...
6
2258
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; memset(&hbf, '\0', 8192);
0
9646
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9483
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10157
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.