a developer's notes – a semi-technical web development BLOG

November 21, 2013

Visual Studio Performance Testing ā€“ Viewing HTTP Responses with Binary Data

When examining a response from a HTTP request, what do you do if it contains binary information?

binaryData1

You can examine the Response tab, but it will also contain binary data information.

binaryData2

What if we just want to just to view the contents on the far right column in a readable format?

binaryData3

One technique would be to copy the entire response into a text editor such as Notepad++. Then you can use the column selection (shift + alt) to remove the binary information.

binaryData5

Then you can do a Find and Replace and remove all the line breaks. In Notepad ++, replace ā€œ\r\nā€ with nothing. Be sure you select the Extended Search Mode.

binaryData6

Now you have the information in a readable format.

{. “object_or_array”: “object”,. “empty”: false,. “parse_time_nanoseconds”: 163674,. “validate”: true,. “size”: 6.}.

Advertisements

October 28, 2011

How to Uninstall Sql Server Express that gets installed with Visual Studio 2010

Filed under: SQL — Duy Nguyen @ 1:12 pm
Tags: , , , , , , , ,

1. Go to Add/ Remove Programs.
2. Choose “Microsoft SQL Server 2008”
**I had Microsoft SQL Server 2008 R2 installed but you still need to select “Microsoft SQL Server 2008” NOT “Microsoft SQL Server 2008 R2”. If you do choose R2, you will see the SQLEXPRESS instance but you will not be able to select it!

3. Click on the REMOVE link (This will allow you to chose the instance to remove. See image)

4. Select SQLEXPRESS and remove!

October 4, 2011

Can’t debug into a Javascript file. Error “No Disassembly Available” or “This breakpoint will not currently be hit. No symbols have been loaded for this document”

Ever put a break point in visual Studio 2010 on a .js file to get this?

This breakpoint will not currently be hit. No symbols have been loaded for this document.”

Then you decide to user the ‘debugger;’ statement. But then Visual Studio gives this error: “no disassembly available“.

You are probably loading your .js file dynamically. If you are, remove (or comment out) where you are loading and load it with an explicit script tag.

example: I was loading the script file like this:

<script src="<%=Url.StaticContent("/MyApplication/Scripts/views/script.js")%>" type="text/javascript" ></script>

I just commented out that line and hard coded the script file like this:

<script src="http://localhost/MyApplication/Scripts/views/script.js" type="text/javascript"></script>

Now I am able to user the debugger; statement AND able to put a break point in Visual Studio.

September 29, 2011

Missing Modules Window in Visual Studio 2010

Filed under: General Tips — Duy Nguyen @ 1:44 pm
Tags: , , , ,

If the Modules Window in Visual Studio 2010 is not under Debug, Windows, Modules, you can get it back by pressing Ctrl-Alt-U.

September 14, 2011

Navigating in Visual Studio

Filed under: General Tips — Duy Nguyen @ 9:30 am
Tags: , , , , , , , , , ,

Have you ever jump around from code to code only to find yourself not knowing what class file you were at or what method you were navigating from? I get lost all the time when I am digging around in code.

I used to use bookmarks to place where I want to remember. They are great but what if you forgot to create one? Is there a “Back” button like you have on your windows browser?

In Visual Studio there is! Check out the Navigate Backwards and Navigate Forwards button!

You can simply click backwards to see where your last mouse cursor was. I usually hit F12 on a method or class to see its definition. And sometimes I find myself down a rabbit hold. Just click on the Navigate backwards to get back where you were!

If they are missing, customize the Standard toolbar. The Navigate Forward and Navigate Backwards is on the “View” Category.

Create a free website or blog at WordPress.com.