If I have a class FilePathHandler
which has a static method FormatSubPath
and I breakpoint in my code is there a way to call this method either in the immediate window or watch window?
Usage;
var temp = FilePathHandler.FormatSubPath(path);
If I write the above in the Immediate window to test something on the fly during a breakpoint, I get the error "error CS0103: The name 'FilePathHandler' does not exist in the current context". Is there anyway to do this or is it not possible?
Try using with its complete namespace? ie NameSpace.FilePathHandler.FormatSubPath(path);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.