bug in hot reload
See original GitHub issueHot reload does not set the DEBUG flag. See example below. On change of any file in the project, hot reload kicks in causing Foo to get recreated but logic doesn’t go through if DEBUG, writes RELEASE to the console and Bar is set to null.
public class Foo
{
static readonly string Bar;
static Foo()
{
#if DEBUG
Console.WriteLine("DEBUG");
Bar = "Testing 123";
#else
Console.WriteLine("RELEASE");
Bar = null!;
#endif
}
}
Issue Analytics
- State:
- Created 3 months ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Unable to Hot Reload on Visual Studio 2022
I was blaming VS for un-functional Hot Reload, but in my case it was caused by trying to Debug ( F5 ) and...
Read more >Hot reload
Flutter's hot reload feature helps you quickly and easily experiment, build UIs, add features, and fix bugs. Hot reload works by injecting updated...
Read more >[Bug]: Live Reload not working. #1601 - remix-run/remix
I still have not found a solution other than it the hot-reloading it working on my Linux machine but refuses to work on...
Read more >Write and debug code by using Hot Reload - Visual Studio ...
You can configure Hot Reload by selecting Settings from the Hot Reload drop-down button. Or, open Tools > Options > Debugging > ....
Read more >Hot reload buggy sometimes? - Blueprint
Basically, hot reload reloads your modules, but it doesn't always do it properly. Some functions pointers aren't updated and so on. Just don't ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi, sorry, but can’t look at the issue before Wednesday next week, hopefully it is not a problem for you
UPDATE: Tried both options, still shows RELEASE.
Looks like it is being built in debug mode but the DEBUG constants is not being set
DefineConstants. Visual Studio automatically does this for us. May be we need to pass it here?https://github.com/adospace/reactorui-maui/blob/39cb1de97f918854b895a4909d2dcc709cdba55d/src/MauiReactor.HotReloadConsole/HotReloadClientEmit.cs#L55
or is it?