dotnetomaniak.pl - Artykuły z tagiem debuggingdotnetomaniak.pl - Artykuły z tagiem debugging2024-03-29T14:25:56Zhttps://dotnetomaniak.pl/Tags/debuggingCopyright (c) dotnetomaniak.pldotnetomaniak.pl Atom Generatordotnetomaniak.pl webmasteradmin@dotnetomaniak.plhttps://dotnetomaniak.pl/Assets/Images/fav.icohttps://dotnetomaniak.pl/Assets/Images/dotnetomaniak_logo-negatyw_small.png31025https://dotnetomaniak.pl/I-couldnt-debug-the-code-because-of-my-nameI couldn’t debug the code because of my name...2021-10-18T12:50:12Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_xNX8cE4Et0m6zjywxKPvPg.png"/></div><div>Some time ago, I finally managed to switch from Visual Studio to JetBrains Rider at work. Finally, because I used to work a lot with Rider before, and I really like this IDE. Unfortunately, I ran into some annoying problems with docker-compose debug configuration.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/I-couldnt-debug-the-code-because-of-my-name"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fmikolaj-kaminski.com%2fjetbrains-rider-docker-compose-unicodedecodeerror-issue-fix%2f" style="border:0px"/></a></div></div>mkaminskihttps://dotnetomaniak.pl/Users/PaL6OYijOkm0IO2RPWnQ3A2021-10-20T07:14:00Zhttps://dotnetomaniak.pl/I-couldnt-debug-the-code-because-of-my-name1840Some time ago, I finally managed to switch from Visual Studio to JetBrains Rider at work. Finally, because I used to work a lot with Rider before, and I really like this IDE. Unfortunately, I ran into some annoying problems with docker-compose debug configuration.https://mikolaj-kaminski.com/jetbrains-rider-docker-compose-unicodedecodeerror-issue-fix/http://dotnetomaniak.pl/Data/Thumbnails/small_xNX8cE4Et0m6zjywxKPvPg.pnghttps://dotnetomaniak.pl/How-to-start-working-with-an-unknown-codebase-CodeJourneynetHow to start working with an unknown codebase? - CodeJourney.net2019-10-02T15:08:27Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_h8a0PQ_tfEuvlx5Qqa-yVA.png"/></div><div>Today I'm trying to give you some tips on approaching an unknown codebase.
How do you manage to quickly find yourself in new code you don't know? How do you manage to join a new project?</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/How-to-start-working-with-an-unknown-codebase-CodeJourneynet"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fwww.codejourney.net%2f2019%2f10%2fhow-to-start-working-with-an-unknown-codebase%2f" style="border:0px"/></a></div></div>dsibinskihttps://dotnetomaniak.pl/Users/QFHCA46gNU6dhXQQW6KGdw2019-10-03T06:05:42Zhttps://dotnetomaniak.pl/How-to-start-working-with-an-unknown-codebase-CodeJourneynet21160Today I'm trying to give you some tips on approaching an unknown codebase.
How do you manage to quickly find yourself in new code you don't know? How do you manage to join a new project?https://www.codejourney.net/2019/10/how-to-start-working-with-an-unknown-codebase/http://dotnetomaniak.pl/Data/Thumbnails/small_h8a0PQ_tfEuvlx5Qqa-yVA.pnghttps://dotnetomaniak.pl/C-attributes-you-should-know-3-DebbugerBrowsable-and-DebuggerDisplay-A-Girl-Among-GeeksC# attributes you should know #3: [DebbugerBrowsable] and [DebuggerDisplay] – A Girl Among Geeks2017-12-22T01:26:21Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_AI9PfyMhPki2e3XoJJcHIw.png"/></div><div>Today I (again) focus on the attributes that will make your debugging less painfull :). This time my scribbles should appeal to the programmers who prefer keeping their code clean (and adhere to the principle: the less ‘spare’ code the better).
So grab a mug of whatever you like and take a look at DebbugerBrowsable and DebuggerDisplay. The first one may be a good alternative to DebuggerTypeProxyI described in previous post and the second one is just ‘a must’ (really!) that makes life easier.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/C-attributes-you-should-know-3-DebbugerBrowsable-and-DebuggerDisplay-A-Girl-Among-Geeks"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fagirlamonggeeks.com%2f2017%2f12%2f18%2fc-attributes-you-should-know-3-debbugerbrowsable-and-debuggerdisplay%2f" style="border:0px"/></a></div></div>AGirlAmongGeekshttps://dotnetomaniak.pl/Users/BR4sTPFFt06GUon4bGbBcQ2017-12-31T06:10:42Zhttps://dotnetomaniak.pl/C-attributes-you-should-know-3-DebbugerBrowsable-and-DebuggerDisplay-A-Girl-Among-Geeks31460Today I (again) focus on the attributes that will make your debugging less painfull :). This time my scribbles should appeal to the programmers who prefer keeping their code clean (and adhere to the principle: the less ‘spare’ code the better).
So grab a mug of whatever you like and take a look at DebbugerBrowsable and DebuggerDisplay. The first one may be a good alternative to DebuggerTypeProxyI described in previous post and the second one is just ‘a must’ (really!) that makes life easier.http://agirlamonggeeks.com/2017/12/18/c-attributes-you-should-know-3-debbugerbrowsable-and-debuggerdisplay/http://dotnetomaniak.pl/Data/Thumbnails/small_AI9PfyMhPki2e3XoJJcHIw.pnghttps://dotnetomaniak.pl/Zalogowanie-ustawien-podczas-startu-applikacji-Show-me-the-codeZalogowanie ustawień podczas startu applikacji | Show me the code2017-12-12T07:46:40Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_JOb56HcYbUqL-vbd4KFgJw.png"/></div><div>Zawsze przychodzi ten moment gdy trzeba rozwiązać buga na produkcji i jedyne co mamy to logi aplikacji. Okazuje się oczywiście, że nie ma wszystkich informacji w tych logach. Nie ma nawet całkiem podstawowych informacji...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Zalogowanie-ustawien-podczas-startu-applikacji-Show-me-the-code"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fkrzysztofmorcinek.wordpress.com%2f2017%2f12%2f12%2fzalogowanie-ustawien-podczas-startu-applikacji%2f" style="border:0px"/></a></div></div>https://krzysztofmorcinek.wordpress.com/https://dotnetomaniak.pl/Users/IllqPwOuB0Saw6IEhk9-aQ2017-12-22T06:30:09Zhttps://dotnetomaniak.pl/Zalogowanie-ustawien-podczas-startu-applikacji-Show-me-the-code41420Zawsze przychodzi ten moment gdy trzeba rozwiązać buga na produkcji i jedyne co mamy to logi aplikacji. Okazuje się oczywiście, że nie ma wszystkich informacji w tych logach. Nie ma nawet całkiem podstawowych informacji...https://krzysztofmorcinek.wordpress.com/2017/12/12/zalogowanie-ustawien-podczas-startu-applikacji/http://dotnetomaniak.pl/Data/Thumbnails/small_JOb56HcYbUqL-vbd4KFgJw.pnghttps://dotnetomaniak.pl/The-fastest-way-do-debug-net-code-without-sources-%C2%B7-CEZARY-PIATEKThe fastest way do debug .net code without sources. · CEZARY PIĄTEK2017-12-10T10:09:39Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_FL3PLaa1WUWsJohumW28cA.png"/></div><div>Some people used to say that a good programmer doesn’t need to debug his own code. However, sometimes we have a problem with third party libraries usage, for example: there is insufficient documentation or the module contains some bugs. Visual Studio has excellent debugging toolset but this is totally useless without symbols and sources (and this is often the case with third party libraries). Thanks to Reshaper decompiler this shouldn’t be a problem anymore.
Before we start debugging we should make so...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/The-fastest-way-do-debug-net-code-without-sources-%C2%B7-CEZARY-PIATEK"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fcezarypiatek.github.io%2fpost%2fdebug-without-sources-part-one%2f" style="border:0px"/></a></div></div>cezarypiatekhttps://dotnetomaniak.pl/Users/OxvLOFvDMk2cm_fdr4hd-Q2017-12-19T07:18:34Zhttps://dotnetomaniak.pl/The-fastest-way-do-debug-net-code-without-sources-%C2%B7-CEZARY-PIATEK41620Some people used to say that a good programmer doesn’t need to debug his own code. However, sometimes we have a problem with third party libraries usage, for example: there is insufficient documentation or the module contains some bugs. Visual Studio has excellent debugging toolset but this is totally useless without symbols and sources (and this is often the case with third party libraries). Thanks to Reshaper decompiler this shouldn’t be a problem anymore.
Before we start debugging we should make so...https://cezarypiatek.github.io/post/debug-without-sources-part-one/http://dotnetomaniak.pl/Data/Thumbnails/small_FL3PLaa1WUWsJohumW28cA.pnghttps://dotnetomaniak.pl/C-attributes-you-should-know-1-DebuggerTypeProxy-A-Girl-Among-GeeksC# attributes you should know #1: [DebuggerTypeProxy] – A Girl Among Geeks2017-12-04T23:00:11Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_rpPzKwhSKkixEWETYui8oA.png"/></div><div>[DebuggerTypeProxy] is very useful attribute when you have a class that inherits from another class and that one inherits from another one, and some of the classes contain collections of items and hundreds of properties that in fact are not important to you… Strictly speaking, when displaying class’ members while debugging makes you feel like quitting the job.
[b]We decide how to display object while debugging[/b]
Exactly! You can set a proxy that will inform debugger how you want a type to be displayed!
...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/C-attributes-you-should-know-1-DebuggerTypeProxy-A-Girl-Among-Geeks"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fwww.agirlamonggeeks.com%2f2017%2f12%2f04%2fc-attributes-you-should-know-1-debuggertypeproxy%2f" style="border:0px"/></a></div></div>AGirlAmongGeekshttps://dotnetomaniak.pl/Users/BR4sTPFFt06GUon4bGbBcQ2017-12-14T06:43:40Zhttps://dotnetomaniak.pl/C-attributes-you-should-know-1-DebuggerTypeProxy-A-Girl-Among-Geeks21730[DebuggerTypeProxy] is very useful attribute when you have a class that inherits from another class and that one inherits from another one, and some of the classes contain collections of items and hundreds of properties that in fact are not important to you… Strictly speaking, when displaying class’ members while debugging makes you feel like quitting the job.
[b]We decide how to display object while debugging[/b]
Exactly! You can set a proxy that will inform debugger how you want a type to be displayed!
...http://www.agirlamonggeeks.com/2017/12/04/c-attributes-you-should-know-1-debuggertypeproxy/http://dotnetomaniak.pl/Data/Thumbnails/small_rpPzKwhSKkixEWETYui8oA.pnghttps://dotnetomaniak.pl/Debugging-ASPNET-Core-apps-in-Visual-Studio-Code-Forever-FrameDebugging ASP.NET Core apps in Visual Studio Code - Forever F[r]ame2017-08-19T15:55:59Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_iH8jXz8Ot0mp0dZhYOtFOg.png"/></div><div>Debugging ASP.NET Core apps in Visual Studio Code is not as simple as in „Windows version” but it’s still pretty easy to setup. So if you have ever had some troubles with that, here’s an explanation of the entire process.
Adding configuration
Before configuring VSC, you need to install C# extension if you don’t have it yet. I’d say, it’s a must-have for every .NET developer working with Code since it offers lots of features like IntelliSense, useful sni...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Debugging-ASPNET-Core-apps-in-Visual-Studio-Code-Forever-Frame"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fforeverframe.net%2fdebugging-asp-net-core-apps-in-visual-studio-code%2f" style="border:0px"/></a></div></div>dpawlukiewiczhttps://dotnetomaniak.pl/Users/3F7LM514EkOFPklktIOrVg2017-08-28T07:05:31Zhttps://dotnetomaniak.pl/Debugging-ASPNET-Core-apps-in-Visual-Studio-Code-Forever-Frame2580Debugging ASP.NET Core apps in Visual Studio Code is not as simple as in „Windows version” but it’s still pretty easy to setup. So if you have ever had some troubles with that, here’s an explanation of the entire process.
Adding configuration
Before configuring VSC, you need to install C# extension if you don’t have it yet. I’d say, it’s a must-have for every .NET developer working with Code since it offers lots of features like IntelliSense, useful sni...http://foreverframe.net/debugging-asp-net-core-apps-in-visual-studio-code/http://dotnetomaniak.pl/Data/Thumbnails/small_iH8jXz8Ot0mp0dZhYOtFOg.pnghttps://dotnetomaniak.pl/Serverless-Non-blocking-debugowanie-na-produkcji-Cloud-Functions-Czesc-3-Jakub-GutkowskiServerless – Non-blocking debugowanie na produkcji (Cloud Functions Część 3) - Jakub Gutkowski2017-07-28T09:51:51Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_njPk7R9PZUqkQoOLJO8HoQ.png"/></div><div>Miałem już zakończyć serię o serverless w gogle gdyż o cloud functions dużo więcej napisać się po prostu nie dało. Tak przynajmniej myślałem. Mimo wszystko kontynuowałem czytanie na temat funkcji, co jest możliwe a co nie. Jakie są opcje i gdzie te funkcje mogą być wykorzystane. I gdyby nie ślepy traf to tego postu by nie było a moja opinia o funkcjach w googlach była by dość słaba – przynajmniej gorsza niż teraz jest.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Serverless-Non-blocking-debugowanie-na-produkcji-Cloud-Functions-Czesc-3-Jakub-Gutkowski"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fblog.gutek.pl%2f2017%2f07%2f27%2fserverless-non-blocking-debugowanie-na-produkcji-cloud-functions-czesc-3%2f" style="border:0px"/></a></div></div>Paweł Łukasikhttps://dotnetomaniak.pl/Users/lI7X-wDfeE2RoUfuiihoOg2017-08-04T16:59:25Zhttps://dotnetomaniak.pl/Serverless-Non-blocking-debugowanie-na-produkcji-Cloud-Functions-Czesc-3-Jakub-Gutkowski1550Miałem już zakończyć serię o serverless w gogle gdyż o cloud functions dużo więcej napisać się po prostu nie dało. Tak przynajmniej myślałem. Mimo wszystko kontynuowałem czytanie na temat funkcji, co jest możliwe a co nie. Jakie są opcje i gdzie te funkcje mogą być wykorzystane. I gdyby nie ślepy traf to tego postu by nie było a moja opinia o funkcjach w googlach była by dość słaba – przynajmniej gorsza niż teraz jest.https://blog.gutek.pl/2017/07/27/serverless-non-blocking-debugowanie-na-produkcji-cloud-functions-czesc-3/http://dotnetomaniak.pl/Data/Thumbnails/small_njPk7R9PZUqkQoOLJO8HoQ.pnghttps://dotnetomaniak.pl/Parallel-debugging-jak-sobie-radzic-Lukasz-KurzyniecParallel debugging – jak sobie radzić | Łukasz Kurzyniec2017-07-11T06:18:46Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_Kx3RmWo5AUeYX7Tg3kpqNQ.png"/></div><div>Ostatnio w projekcie zdarzyło się, że musiałem debugować skomplikowany proces wyliczania, który był zrównoleglony przy pomocy metody Parallel.ForEach(). Moja konfiguracja sprzętowa pozwoliła na uruchomienie kilku wątków naraz co sprawiło, że proces debugowania stał się dość uciążliwy. W różnych, bliżej nieokreślonych momentach, byłem przerzucany pomiędzy różnymi wątkami, a co za tym idzie pomiędzy różnymi kontekstami i miejscami w kodzie.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Parallel-debugging-jak-sobie-radzic-Lukasz-Kurzyniec"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fkurzyniec.pl%2fblog%2fparallel-debugging-jak-sobie-radzic%2f" style="border:0px"/></a></div></div>lkurzyniechttps://dotnetomaniak.pl/Users/c69iSm6JA0W0YdfPXo3VUg2017-07-19T11:09:15Zhttps://dotnetomaniak.pl/Parallel-debugging-jak-sobie-radzic-Lukasz-Kurzyniec52100Ostatnio w projekcie zdarzyło się, że musiałem debugować skomplikowany proces wyliczania, który był zrównoleglony przy pomocy metody Parallel.ForEach(). Moja konfiguracja sprzętowa pozwoliła na uruchomienie kilku wątków naraz co sprawiło, że proces debugowania stał się dość uciążliwy. W różnych, bliżej nieokreślonych momentach, byłem przerzucany pomiędzy różnymi wątkami, a co za tym idzie pomiędzy różnymi kontekstami i miejscami w kodzie.http://kurzyniec.pl/blog/parallel-debugging-jak-sobie-radzic/http://dotnetomaniak.pl/Data/Thumbnails/small_Kx3RmWo5AUeYX7Tg3kpqNQ.pnghttps://dotnetomaniak.pl/Could-not-load-file-or-assembly-or-one-of-its-dependencies-IndexOutOfRangeCould not load file or assembly or one of its dependencies. – IndexOutOfRange2017-03-01T07:50:23Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_9Jq7ww2IEUmHDLFatcG_yg.png"/></div><div>Reading time ~6 minutes
In most cases .NET manages to solve the DLL hell problem pretty well, but sometimes it all falls apart, and when it does in best case scenario we see something like this:Could not load file or assembly 'XXXX, Version=X.Y.Z.W, Culture=neutral, PublicKeyToken=eb42632606e9261f' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
The much worst case is this:The method 'XXXX' was not fou...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Could-not-load-file-or-assembly-or-one-of-its-dependencies-IndexOutOfRange"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2findexoutofrange.com%2fCould_not_load_file_or_assembly_or_one_of_its_dependencies%2f" style="border:0px"/></a></div></div>maklipsahttps://dotnetomaniak.pl/Users/31yXhXxtM0GtdEekLLT8yw2017-03-09T07:23:05Zhttps://dotnetomaniak.pl/Could-not-load-file-or-assembly-or-one-of-its-dependencies-IndexOutOfRange3720Reading time ~6 minutes
In most cases .NET manages to solve the DLL hell problem pretty well, but sometimes it all falls apart, and when it does in best case scenario we see something like this:Could not load file or assembly 'XXXX, Version=X.Y.Z.W, Culture=neutral, PublicKeyToken=eb42632606e9261f' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
The much worst case is this:The method 'XXXX' was not fou...https://indexoutofrange.com/Could_not_load_file_or_assembly_or_one_of_its_dependencies/http://dotnetomaniak.pl/Data/Thumbnails/small_9Jq7ww2IEUmHDLFatcG_yg.pnghttps://dotnetomaniak.pl/Jak-za-pomoca-Visual-Studio-odkryc-linijke-bledu-w-bibliotece-zewnetrznej-Jakub-GutkowskiJak za pomocą Visual Studio odkryć linijkę błędu w bibliotece zewnętrznej - Jakub Gutkowski2017-02-23T08:12:41Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_cuRE-W_CYkOKp6W25zablg.png"/></div><div>Jak doszedłem do tego co zawiniło i dlaczego OData na spatial queries mi nie działała. Czyli mały przewodnik po tym jak można debuggować zewnętrzny kod z poziomu Visual Studio.
Coś co może nie na co dzień ale raz na jakiś czas może się bardzo przydać!</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Jak-za-pomoca-Visual-Studio-odkryc-linijke-bledu-w-bibliotece-zewnetrznej-Jakub-Gutkowski"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fblog.gutek.pl%2f2017%2f02%2f23%2fjak-za-pomoca-visual-studio-odkryc-linijke-bledu-w-bibliotece-zewnetrznej%2f" style="border:0px"/></a></div></div>Gutekhttps://dotnetomaniak.pl/Users/9zCEEfXxAEmLNs3bT0YJ_Q2017-03-03T13:25:25Zhttps://dotnetomaniak.pl/Jak-za-pomoca-Visual-Studio-odkryc-linijke-bledu-w-bibliotece-zewnetrznej-Jakub-Gutkowski72560Jak doszedłem do tego co zawiniło i dlaczego OData na spatial queries mi nie działała. Czyli mały przewodnik po tym jak można debuggować zewnętrzny kod z poziomu Visual Studio.
Coś co może nie na co dzień ale raz na jakiś czas może się bardzo przydać!https://blog.gutek.pl/2017/02/23/jak-za-pomoca-visual-studio-odkryc-linijke-bledu-w-bibliotece-zewnetrznej/http://dotnetomaniak.pl/Data/Thumbnails/small_cuRE-W_CYkOKp6W25zablg.pnghttps://dotnetomaniak.pl/Querying-database-in-Management-Studio-while-debugging-application-PoznajProgramowanieplQuerying database in Management Studio while debugging application - PoznajProgramowanie.pl2017-02-09T13:28:48Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_KIpFzhcS-kKufvOI3W9nfA.png"/></div><div>Yep, it’s not rocket science, but it can really help you in your everyday work. If you don’t know about this trick – you can waste a lof of time.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Querying-database-in-Management-Studio-while-debugging-application-PoznajProgramowaniepl"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fpoznajprogramowanie.pl%2fquerying-database-in-management-studio-while-debugging-application%2f" style="border:0px"/></a></div></div>AdrianBystrekhttps://dotnetomaniak.pl/Users/OVypLamzHEejQV0ElEVgOA2017-02-13T07:06:59Zhttps://dotnetomaniak.pl/Querying-database-in-Management-Studio-while-debugging-application-PoznajProgramowaniepl1930Yep, it’s not rocket science, but it can really help you in your everyday work. If you don’t know about this trick – you can waste a lof of time.http://poznajprogramowanie.pl/querying-database-in-management-studio-while-debugging-application/http://dotnetomaniak.pl/Data/Thumbnails/small_KIpFzhcS-kKufvOI3W9nfA.pnghttps://dotnetomaniak.pl/CodeTip-4-Debugging-with-conditions-actions-in-Visual-Studio-Forever-FrameCodeTip #4 Debugging with conditions & actions in Visual Studio - Forever F[r]ame2017-01-29T17:28:26Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_K3JAh8_MVka8m9zIS6EVWQ.png"/></div><div>Sometimes it happens that knowing well some tool we suddenly discover an option that seems completely „exotic” but when we sh...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/CodeTip-4-Debugging-with-conditions-actions-in-Visual-Studio-Forever-Frame"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fforeverframe.pl%2fcodetip-4-debugging-with-conditions-actions-in-visual-studio%2f" style="border:0px"/></a></div></div>dpawlukiewiczhttps://dotnetomaniak.pl/Users/3F7LM514EkOFPklktIOrVg2017-02-06T19:42:22Zhttps://dotnetomaniak.pl/CodeTip-4-Debugging-with-conditions-actions-in-Visual-Studio-Forever-Frame2750Sometimes it happens that knowing well some tool we suddenly discover an option that seems completely „exotic” but when we sh...http://foreverframe.pl/codetip-4-debugging-with-conditions-actions-in-visual-studio/http://dotnetomaniak.pl/Data/Thumbnails/small_K3JAh8_MVka8m9zIS6EVWQ.pnghttps://dotnetomaniak.pl/A-curious-case-of-memory-leak-in-a-nodejs-app-Technical-Blog-Future-ProcessingA curious case of memory leak in a node.js app | Technical Blog - Future Processing2016-12-01T13:33:19Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_yJYxR0rGF0aBCyXP9tgfzw.png"/></div><div>This is a story of a bug I had an opportunity to fix in the ancient times of node.js 0.10. The new and shiny node.js 0.12 was still just glimmering somewhere on the horizon, we were still young and beautiful. Some of us, at least.
Let me take you on an adventure through time and space. Hopefully, there will be some learning involved along the way. So hop on the magic school bus and we’re off!</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/A-curious-case-of-memory-leak-in-a-nodejs-app-Technical-Blog-Future-Processing"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fwww.future-processing.pl%2fblog%2fa-curious-case-of-memory-leak-in-a-node-js-app%2f" style="border:0px"/></a></div></div>FutureProcessinghttps://dotnetomaniak.pl/Users/qF1OiEOjOkOlFWP9r9AHQA2016-12-06T18:20:44Zhttps://dotnetomaniak.pl/A-curious-case-of-memory-leak-in-a-nodejs-app-Technical-Blog-Future-Processing2520This is a story of a bug I had an opportunity to fix in the ancient times of node.js 0.10. The new and shiny node.js 0.12 was still just glimmering somewhere on the horizon, we were still young and beautiful. Some of us, at least.
Let me take you on an adventure through time and space. Hopefully, there will be some learning involved along the way. So hop on the magic school bus and we’re off!https://www.future-processing.pl/blog/a-curious-case-of-memory-leak-in-a-node-js-app/http://dotnetomaniak.pl/Data/Thumbnails/small_yJYxR0rGF0aBCyXP9tgfzw.pnghttps://dotnetomaniak.pl/EN-Debugging-high-memory-usage-Part-1-ProcDump-IndexOutOfRange[EN] Debugging high memory usage. Part 1 - ProcDump – IndexOutOfRange2016-09-28T13:50:19Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_NYhEsHtD_keTvmfmD6FRqA.png"/></div><div>Reading time ~2 minutes
I’m taking a short break from Hangfire series, but I will get back to it.
This time - Where did my memory go ? Or to be more exact: Why is this using so much memory?
The story starts with one IIS application pool using around 6 Gigabytes of memory on one of our test environments. It was several times above the values that we expected it to use, so we decided to investigate.
Without much thinking we fired up Visual Studio installed on the test server, and attached to the proce...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Debugging-high-memory-usage-Part-1-ProcDump-IndexOutOfRange"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2findexoutofrange.com%2fDebugging-high-memory-usage.Part-1-ProcDump%2f" style="border:0px"/></a></div></div>maklipsahttps://dotnetomaniak.pl/Users/31yXhXxtM0GtdEekLLT8yw2016-10-05T07:02:24Zhttps://dotnetomaniak.pl/EN-Debugging-high-memory-usage-Part-1-ProcDump-IndexOutOfRange1640Reading time ~2 minutes
I’m taking a short break from Hangfire series, but I will get back to it.
This time - Where did my memory go ? Or to be more exact: Why is this using so much memory?
The story starts with one IIS application pool using around 6 Gigabytes of memory on one of our test environments. It was several times above the values that we expected it to use, so we decided to investigate.
Without much thinking we fired up Visual Studio installed on the test server, and attached to the proce...http://indexoutofrange.com/Debugging-high-memory-usage.Part-1-ProcDump/http://dotnetomaniak.pl/Data/Thumbnails/small_NYhEsHtD_keTvmfmD6FRqA.pnghttps://dotnetomaniak.pl/EN-How-to-enhance-debugging-in-Visual-Studio-with-just-one-simple-step-even-more-net-blog-octalpl[EN] How to enhance debugging in Visual Studio with just one simple step even more | .net blog – octal.pl2016-09-22T21:37:17Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_A7-I7ue3iUSoe0ZfZCjIXg.png"/></div><div>Everyone knows how to enhance Visual Studio’s debugging experience by applying DebuggerDisplay attribute (in polish). If not – read Piotr’s post here. That’s debugging 101. Here’s how to improve your experience even more.
DebuggerDisplay attribute is ok if you control the code and you can apply it to the type you want to expose in the debugger. What if you can’t do that? What if you want to attribute a build-in type? Is all hope gone?
No. There’s a way. There’s a hidden* .cs file and a dll that you can...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-How-to-enhance-debugging-in-Visual-Studio-with-just-one-simple-step-even-more-net-blog-octalpl"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fblog.octal.pl%2f2016%2f09%2fhow-to-enhance-debugging-in-visual-studio-with-just-one-simple-step-even-more.html" style="border:0px"/></a></div></div>Paweł Łukasikhttps://dotnetomaniak.pl/Users/lI7X-wDfeE2RoUfuiihoOg2016-10-02T18:38:18Zhttps://dotnetomaniak.pl/EN-How-to-enhance-debugging-in-Visual-Studio-with-just-one-simple-step-even-more-net-blog-octalpl1920Everyone knows how to enhance Visual Studio’s debugging experience by applying DebuggerDisplay attribute (in polish). If not – read Piotr’s post here. That’s debugging 101. Here’s how to improve your experience even more.
DebuggerDisplay attribute is ok if you control the code and you can apply it to the type you want to expose in the debugger. What if you can’t do that? What if you want to attribute a build-in type? Is all hope gone?
No. There’s a way. There’s a hidden* .cs file and a dll that you can...http://blog.octal.pl/2016/09/how-to-enhance-debugging-in-visual-studio-with-just-one-simple-step-even-more.htmlhttp://dotnetomaniak.pl/Data/Thumbnails/small_A7-I7ue3iUSoe0ZfZCjIXg.pnghttps://dotnetomaniak.pl/Blog-Kokosa-Advanced-NET-Debugging-recenzjaBlog Kokosa | Advanced .NET Debugging - recenzja2016-06-24T09:08:49Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_JpBFr96EUUiPs0FXWZwSwg.png"/></div><div>Nie wiem czy macie prawo jazdy, ale nawet jeśli nie, to pewnie zrozumiecie wysublimowaną analogię, którą zaraz przeczytacie. Otóż jeżdżąc samochodem i mniej więcej kojarząc przepis drogowe, możemy jeździć z powodzeniem całe życie. (...)</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Blog-Kokosa-Advanced-NET-Debugging-recenzja"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fblog.kokosa.net%2fpost%2fAdvanced-NET-Debugging-recenzja" style="border:0px"/></a></div></div>KonradKokosahttps://dotnetomaniak.pl/Users/4FbP4ushl0astXU1t8p-uw2016-07-02T06:32:43Zhttps://dotnetomaniak.pl/Blog-Kokosa-Advanced-NET-Debugging-recenzja22330Nie wiem czy macie prawo jazdy, ale nawet jeśli nie, to pewnie zrozumiecie wysublimowaną analogię, którą zaraz przeczytacie. Otóż jeżdżąc samochodem i mniej więcej kojarząc przepis drogowe, możemy jeździć z powodzeniem całe życie. (...)http://blog.kokosa.net/post/Advanced-NET-Debugging-recenzjahttp://dotnetomaniak.pl/Data/Thumbnails/small_JpBFr96EUUiPs0FXWZwSwg.pnghttps://dotnetomaniak.pl/Podglad-zwroconych-wartosci-podczas-debugowania-Siepacze-KoduPodgląd zwróconych wartości podczas debugowania – Siepacze Kodu2016-03-24T15:06:26Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_2u_6lxYf8kqSVddmnGG-EQ.png"/></div><div>Visual StudioŁukasz Zaborski2 min readAdd Comment
Często podczas debugowania miałem problem z sprawdzeniem co dana metoda zwraca w momencie kiedy call stack znajdował się na linijce z return. Przykładowo mając poniższą metode nie byłem w stanie podejrzeć jakie wartości są zwracane.public IEnumerable</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Podglad-zwroconych-wartosci-podczas-debugowania-Siepacze-Kodu"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fwww.siepaczekodu.pl%2f2016%2f03%2f11%2fpodglad-zwroconych-wartosci-podczas-debugowania%2f" style="border:0px"/></a></div></div>Zabahttps://dotnetomaniak.pl/Users/Om73jYhiD0uMHvJ-zL2zCA2016-03-29T22:33:47Zhttps://dotnetomaniak.pl/Podglad-zwroconych-wartosci-podczas-debugowania-Siepacze-Kodu12150Visual StudioŁukasz Zaborski2 min readAdd Comment
Często podczas debugowania miałem problem z sprawdzeniem co dana metoda zwraca w momencie kiedy call stack znajdował się na linijce z return. Przykładowo mając poniższą metode nie byłem w stanie podejrzeć jakie wartości są zwracane.public IEnumerablehttp://www.siepaczekodu.pl/2016/03/11/podglad-zwroconych-wartosci-podczas-debugowania/http://dotnetomaniak.pl/Data/Thumbnails/small_2u_6lxYf8kqSVddmnGG-EQ.pnghttps://dotnetomaniak.pl/What-Ive-learned-today-Debugging-with-Pseudovariables-exception[EN] What I’ve learned today – Debugging with Pseudovariables ($exception)2014-10-13T11:56:26Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_dXSqfqSlk0S4wTy2t5PgyA.png"/></div><div>Debugging complex exceptions with $exception pseudovariable</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/What-Ive-learned-today-Debugging-with-Pseudovariables-exception"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fprogrunning.net%2fwhat-ive-learned-today-debugging-with-pseudovariables-exception%2f" style="border:0px"/></a></div></div>mkiereshttps://dotnetomaniak.pl/Users/xZLMmmttCUqvHJtVa4Z1uQ2014-10-23T05:49:18Zhttps://dotnetomaniak.pl/What-Ive-learned-today-Debugging-with-Pseudovariables-exception31490Debugging complex exceptions with $exception pseudovariablehttp://progrunning.net/what-ive-learned-today-debugging-with-pseudovariables-exception/http://dotnetomaniak.pl/Data/Thumbnails/small_dXSqfqSlk0S4wTy2t5PgyA.pnghttps://dotnetomaniak.pl/Piotr-Zielinski-Debugowanie-obiektow-bez-jawnej-referencjiPiotr Zieliński » Debugowanie obiektów bez jawnej referencji2014-07-27T19:01:13Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_y4Kzxo6CJEqXagTJQdhjng.png"/></div><div>W Visual Studio istnieje pewna opcja, która umożliwia sprawdzenie wartości obiektu, do którego nie ma się jawnej referencji. Spójrzmy na następujący przykład:class Program
{
staticvoid Main(string[] args)
{
DoSomething();
}
privatestaticvoid DoSomething()
{
var person=new Person();
person.FirstName ="Piotr";
person.LastName ="Zielinski";
}
}
Jeśli ustawimy breakpoint w metodzie DoSomething naturalnie zobaczymy wartość obiektu person w oknie watch:...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Piotr-Zielinski-Debugowanie-obiektow-bez-jawnej-referencji"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fwww.pzielinski.com%2f%3fp%3d2055" style="border:0px"/></a></div></div>Paweł Łukasikhttps://dotnetomaniak.pl/Users/lI7X-wDfeE2RoUfuiihoOg2014-08-05T11:57:44Zhttps://dotnetomaniak.pl/Piotr-Zielinski-Debugowanie-obiektow-bez-jawnej-referencji21750W Visual Studio istnieje pewna opcja, która umożliwia sprawdzenie wartości obiektu, do którego nie ma się jawnej referencji. Spójrzmy na następujący przykład:class Program
{
staticvoid Main(string[] args)
{
DoSomething();
}
privatestaticvoid DoSomething()
{
var person=new Person();
person.FirstName ="Piotr";
person.LastName ="Zielinski";
}
}
Jeśli ustawimy breakpoint w metodzie DoSomething naturalnie zobaczymy wartość obiektu person w oknie watch:...http://www.pzielinski.com/?p=2055http://dotnetomaniak.pl/Data/Thumbnails/small_y4Kzxo6CJEqXagTJQdhjng.pnghttps://dotnetomaniak.pl/NET-blog-VS-2013-Debugging-Zwracana-wartosc.NET blog: VS 2013 Debugging - Zwracana wartość2013-11-04T10:04:44Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_3QtD4Irwg0m44-mANdeW4Q.png"/></div><div>Nie wiem jak wy ale ja kocham debugować kod. Odkrywanie, gdzie programista (w wielu wypadkach ja sam!) popełnił (świadomie/nieświadomie) błąd wprawia mnie w stan euforii pewnie jak morfina uzależnionego :).
Visual Studio (dla mnie) jest dość bliskie idealnego narzędzia do tego celu, ale do szczęścia brakowało mu kilku rzeczy. Jedną z nich był podgląd zwracanej wartości z funkcji. W poprzedniej wersji mogliśmy tę wartość uzyskać, ale trzeba było się troszkę "namęczyć".
VS 2013 to the rescue
Najnow...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/NET-blog-VS-2013-Debugging-Zwracana-wartosc"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fpawlos.blogspot.com%2f2013%2f11%2fvs-2013-debugging-zwracana-wartosc.html" style="border:0px"/></a></div></div>trismegistahttps://dotnetomaniak.pl/Users/AoqL2UrJ6k60kDPWsP5kng2013-11-12T13:50:43Zhttps://dotnetomaniak.pl/NET-blog-VS-2013-Debugging-Zwracana-wartosc32010Nie wiem jak wy ale ja kocham debugować kod. Odkrywanie, gdzie programista (w wielu wypadkach ja sam!) popełnił (świadomie/nieświadomie) błąd wprawia mnie w stan euforii pewnie jak morfina uzależnionego :).
Visual Studio (dla mnie) jest dość bliskie idealnego narzędzia do tego celu, ale do szczęścia brakowało mu kilku rzeczy. Jedną z nich był podgląd zwracanej wartości z funkcji. W poprzedniej wersji mogliśmy tę wartość uzyskać, ale trzeba było się troszkę "namęczyć".
VS 2013 to the rescue
Najnow...http://pawlos.blogspot.com/2013/11/vs-2013-debugging-zwracana-wartosc.htmlhttp://dotnetomaniak.pl/Data/Thumbnails/small_3QtD4Irwg0m44-mANdeW4Q.pnghttps://dotnetomaniak.pl/Wednewsday-analiza-crash-dumpow-i-procesow-NET-na-zywca-z-kodu-Maciej-Aniserowicz-o-programowaniuWednewsday: analiza crash dumpów i procesów .NET na żywca z kodu | Maciej Aniserowicz o programowaniu2013-05-15T19:47:20Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_a39CJ803yEqZZJtwNtsHfA.png"/></div><div>Niedawno Microsoft wypuścił bardzo interesującą bibliotekę: CLR Memory Diagnostics (w skrócie: ClrMD). Cudeńko to daje nam do rąk niemałą władzę: możemy z jej pomocą podpiąć się z kodu pod dowolny proces .NET i odczytać z niego masę interesujących informacji (jak chociażby wszystko co chcielibyśmy wiedzieć o aktualnym stanie sterty – Heap).
Gdyby tego było mało, w ten sam sposób możemy z kodu analizować crash dumpy.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Wednewsday-analiza-crash-dumpow-i-procesow-NET-na-zywca-z-kodu-Maciej-Aniserowicz-o-programowaniu"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fwww.maciejaniserowicz.com%2f2013%2f05%2f15%2fwednewsday-analiza-crash-dumpw-i-procesw-net-na-zywca-z-kodu%2f" style="border:0px"/></a></div></div>psz750https://dotnetomaniak.pl/Users/dJmbAXo8w06UvXwoag8pUA2013-05-25T04:18:51Zhttps://dotnetomaniak.pl/Wednewsday-analiza-crash-dumpow-i-procesow-NET-na-zywca-z-kodu-Maciej-Aniserowicz-o-programowaniu21970Niedawno Microsoft wypuścił bardzo interesującą bibliotekę: CLR Memory Diagnostics (w skrócie: ClrMD). Cudeńko to daje nam do rąk niemałą władzę: możemy z jej pomocą podpiąć się z kodu pod dowolny proces .NET i odczytać z niego masę interesujących informacji (jak chociażby wszystko co chcielibyśmy wiedzieć o aktualnym stanie sterty – Heap).
Gdyby tego było mało, w ten sam sposób możemy z kodu analizować crash dumpy.http://www.maciejaniserowicz.com/2013/05/15/wednewsday-analiza-crash-dumpw-i-procesw-net-na-zywca-z-kodu/http://dotnetomaniak.pl/Data/Thumbnails/small_a39CJ803yEqZZJtwNtsHfA.pnghttps://dotnetomaniak.pl/EN-Disable-attach-security-warning[EN] Disable attach security warning2013-02-21T21:55:13Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_1c5AIATSDECwtyvdbL1a9w.png"/></div><div>Visual Studio by default is showing a message when trying to attach to process. It is saying that:
Attaching to this process can potentially harm your computer. If the
information below looks suspicious or you are unsure, do not attach to
this process.
Because I'm attaching many times a day it becomes really annoying. Couple minutes of googling and here it is the solution for disabling it:
First you need to make sure that Visual Studio isn't running.Next you need to modify registry key depending on...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Disable-attach-security-warning"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fwww.domin8k.com%2f2013%2f02%2fdisable-attach-security-warning.html" style="border:0px"/></a></div></div>http://www.domin8k.com/https://dotnetomaniak.pl/Users/eQZ5VLap9kGBNx-FgMOMZw2013-03-01T06:42:46Zhttps://dotnetomaniak.pl/EN-Disable-attach-security-warning2440Visual Studio by default is showing a message when trying to attach to process. It is saying that:
Attaching to this process can potentially harm your computer. If the
information below looks suspicious or you are unsure, do not attach to
this process.
Because I'm attaching many times a day it becomes really annoying. Couple minutes of googling and here it is the solution for disabling it:
First you need to make sure that Visual Studio isn't running.Next you need to modify registry key depending on...http://www.domin8k.com/2013/02/disable-attach-security-warning.htmlhttp://dotnetomaniak.pl/Data/Thumbnails/small_1c5AIATSDECwtyvdbL1a9w.pnghttps://dotnetomaniak.pl/EN-Read-last-executed-SQL-statement-from-a-memory-dump-Low-Level-Design[EN] Read last executed SQL statement from a memory dump | Low Level Design2012-06-26T18:45:51Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_2BCqmXvtWE-hk-9bhjWz_A.png"/></div><div>In this post I’m going to show you how to diagnose SQL exceptions using memory dumps. Imagine you have a web application deployed on a production server. Your application is using Elmah configured to log all exceptions to a dedicated table. One day you receive information that users are unable to make orders and in the Elmah log there are lots of SqlTypeExceptions:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 1...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Read-last-executed-SQL-statement-from-a-memory-dump-Low-Level-Design"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2flowleveldesign.wordpress.com%2f2012%2f06%2f16%2fread-last-executed-sql-statement-from-a-memory-dump%2f" style="border:0px"/></a></div></div>Paweł Łukasikhttps://dotnetomaniak.pl/Users/lI7X-wDfeE2RoUfuiihoOg2012-07-05T05:40:52Zhttps://dotnetomaniak.pl/EN-Read-last-executed-SQL-statement-from-a-memory-dump-Low-Level-Design1400In this post I’m going to show you how to diagnose SQL exceptions using memory dumps. Imagine you have a web application deployed on a production server. Your application is using Elmah configured to log all exceptions to a dedicated table. One day you receive information that users are unable to make orders and in the Elmah log there are lots of SqlTypeExceptions:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 1...http://lowleveldesign.wordpress.com/2012/06/16/read-last-executed-sql-statement-from-a-memory-dump/http://dotnetomaniak.pl/Data/Thumbnails/small_2BCqmXvtWE-hk-9bhjWz_A.pnghttps://dotnetomaniak.pl/PowerShell-i-debuggowanie-biblioteki-NetPowerShell i debuggowanie biblioteki .Net2011-08-17T06:38:51Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_dDfcqO3Z5EGF40bwVHxTkw.png"/></div><div>"Reużywalność" w PowerShell'u
Pisząc skrypt w PowerShell'u postanowiłem wywołać metodę z zewnętrznej biblioteki wchodzącej w skład rozwijanego przez mój zespól systemu. Zaimportowałem dll'kę za pomocą metody Assembly.LoadFrom , utworzyłem instancję typu danych i uruchomiłem metodę. Oczywiście otrzymałem wyjątek NullReferenceException, który wskazywał na to, że problem pojawił się w metodzie z zewnętrzenej biblioteki. Zastanowiłem się chwilę i stwierdziłem, że nie zaszkodziłoby zdebuggować tej metody. Ku ...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/PowerShell-i-debuggowanie-biblioteki-Net"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fmmulawa.blogspot.com%2f2011%2f08%2fpowershell-i-debuggowanie-biblioteki.html" style="border:0px"/></a></div></div>http://mmulawa.blogspot.com/https://dotnetomaniak.pl/Users/UclNPAq_tES3dYlpPGdWoA2011-08-26T11:43:27Zhttps://dotnetomaniak.pl/PowerShell-i-debuggowanie-biblioteki-Net2780"Reużywalność" w PowerShell'u
Pisząc skrypt w PowerShell'u postanowiłem wywołać metodę z zewnętrznej biblioteki wchodzącej w skład rozwijanego przez mój zespól systemu. Zaimportowałem dll'kę za pomocą metody Assembly.LoadFrom , utworzyłem instancję typu danych i uruchomiłem metodę. Oczywiście otrzymałem wyjątek NullReferenceException, który wskazywał na to, że problem pojawił się w metodzie z zewnętrzenej biblioteki. Zastanowiłem się chwilę i stwierdziłem, że nie zaszkodziłoby zdebuggować tej metody. Ku ...http://mmulawa.blogspot.com/2011/08/powershell-i-debuggowanie-biblioteki.htmlhttp://dotnetomaniak.pl/Data/Thumbnails/small_dDfcqO3Z5EGF40bwVHxTkw.png