c# - How do you debug a single ASPX file? -
How do you debug a single ASPX file?
I'm new to some ASPX files, but I'm not new to C #.
I thought that all ASPN C # projects ran on the server as a compiled code. And so some type of binary file was somewhere else elsewhere like an XAP file, such as silver light.
But it seems that this is not the case. It seems that, sometimes, you can create an ASPX file with a CSPX file with a C-Sharp file and it runs like a PHP file. For starters, is this right? So far am I right?
Now, if I was the owner of both ASPX file and CSHRP code-file, then how would I debug it in Visual Studio?
> How do I run the code?
My point is that there is no project to load. There is only one file.
After setting a breakpoint, there is nothing to run. I have tried to load the espex code in the browser but then the breakpoints become inactive.
file
and just on the server is the ASPX file and together. CC file
All this is there. There is no solution file, there is no default .aspx file, there is nothing other than other .aspx files and aspx.cs files in that directory.
If this was a web form, then a project file and or a solution file would be compiled, right? Nothing like that is not a DLL file
Assume that you have to render on the local IIS server Already available ASPX page (i.e.
in Visual Studio
- In the open page (localhost: ....) in the browser of your choice < Li> Debugger -> Attach to process
- If the w3wp is in the list, then if the "Show from all users" checkbox is not checked, then VS Users who have debug privileges) may need to run
- Attach to W3wp (be sure to select the correct version if necessary)
- to ASPX / ASPX CS Open and set breakpoints
- Refresh the page in the browser to kill breakpoints
Note: Creating one of the web projects will be easy because you have made available by VS Local Sources Will be able to use Hwar and simplifying the overall experience.
Comments
Post a Comment