Diagnostics 101

Sign in to queue

Description

No-one writes software without getting stuck from time to time. Whether it's an API not working as expected, an algorithm not producing the right results, or a vexing exception, it's a rare day when coding is just plain sailing. So what do you do when you hit a problem?

In this talk I'll walk through some strategies and techniques so that you can:

  • Narrow down where a problem occurs
  • Reproduce the problem in a debug-friendly environment
  • Write a log as you go, to avoid going down blind alleys multiple times
  • Capture your problem concisely but precisely, to ask colleagues for help, report a bug or post on Stack Overflow.

While there are no true silver bullets in computing, the ability to work on solving problems in a methodical way is as close as I've found. Level up today!

Day:

1

Code:

T115

Embed

Download

Download this episode

Download captions

The Discussion

  • User profile image
    bony

    hi, my name is Edumile i need a solver about this question own
    I think is problem techniques service into this laptop, for this open links of social network catch all i ussually link server its not are funtion<. E3F82BC2-7486-4053-B842-EACDA81DDFD1.Diagnose.0.etl.
    Its about page of facebook
    Information Collected
    Team Name: SEBLW8
    Windows version: 6.3
    Architecture: x64
    Time: Tuesday, September 19, 2017 12:19:49

  • User profile image
    LyalinDotCom

    @bony: sorry but we cant offer support here, please try something like stackoverflow to get the best results and your questions hopefully answered!

  • User profile image
    elschmitt77

    I find that I run into caching issues constantly when working with .js files and using Chrome. I have to forcefully reload the .js file or reset my Chrome defaults. It's weird and has caused some serious head banging because I just couldn't figure out why my code didn't appear to do what it should have. Of course, now I'm so accustom to it, that I just naturally assume that Chrome is caching the files, so I don't freak out as much! Still, I wish I had a way to force reload the .js file on a "run without debugging".

    Not sure if I should be commenting here for this or not.

  • User profile image
    harleydk

    Am not seeing the video - hasn't been released yet? The main keynote from the .net conf 2017 I can see, no problem.

  • User profile image
    Glen

    The main keynote posted on the front page is really the whole thing for day 1. If you go to the 4 hour mark, that is where this session starts.

  • User profile image
    leppie

    @harleydk and @Glen The video is at timestamp 4:00:00 of the 9 hour keynote video.

  • User profile image
    treignier

    Question: when or is there an out-of-the-box printing possibility of method parameters & *values* in the stack trace file dumps when an application crashes? Coming from the smalltalk world this was available from day 1. I read about a couple of techniques on stackoverflow but which one is the best with no or less work? Ultimately .Net should delivering that capability. From an outside dev I am simply wondering: how-hard can it be ;)

    Thanks

  • User profile image
    CaRDiaK

    @elschmitt: you can use incognito mode to test your changes as it won't have remembered anything. 

    A trick we use when forcing changes to sites in production is adding a query string to the url from a page that is referencing the file that effectively does nothing, however, it is a signal for chrome to reload it. 

    e.g. <script src="~/public/js/my-file.js?v=1.1"></script>

    If a change is made to my-file.js and we need to be absolutely sure the user gets the change and might not reload their cache it becomes <script src="~/public/js/my-file.js?v=1.2"></script> which as far as Chrome is concerned is a different file. 

Add Your 2 Cents