In my C# console application is there anyway to skip straight to breaking point thats in its own public method that isn't actually referenced in the application? I don't know if its possible, but when I run debug its running through the whole application and I am just trying to test the method that I created and not the whole application I know already works.
Thanks
VulpesPosted Oct 6, 2014, 10:59 AM
If you want to test a method which isn't yet 'wired in' to the rest of the application or will only be called rarely, then I'd simply insert a temporary call to that method at an appropriate place in your code. You can remove the temporary call when you're confident the method is working correctly.
If the method relies on some external context (i.e. variables outside the method itself) then you will of course need to ensure that you call the method at some point where this context has already been initialized.