yangyuan / hearthrock

Hearthstone® Bot Engine
https://yangyuan.github.io/hearthrock/
MIT License
258 stars 68 forks source link

VS Debugging #23

Closed odkken closed 7 years ago

odkken commented 7 years ago

What is the correct way to attach VS's debugger? Is there a way to run without patching the client?

So far I've tried patching the client, then attaching VS to the Hearthstone process, but Hearthstone crashes when I do this.

yangyuan commented 7 years ago

Short answer: I don't do (and I don't need) VS debugging.

Long answer: What u want to "debug"? Hearthstone, Hearthrock or your bot?

If you want to debug ur bot, it's better to use client-server (remote bot) mode and debug your own process. There are python, nodejs examples of bot. If you want to use C#, OWIN would be a great choice.

odkken commented 7 years ago

Want to debug Hearthrock & bot (c#). I'm interested in stepping through & learning how Hearhthrock achieves interactivity, as well as being able to debug my custom bot code. Was hoping they could both be done in VS, same process, but it seems that may not be the case.

How do you debug (Hearthrock for instance)?

yangyuan commented 7 years ago

Logging/tracing should be sufficient.

If you really want to use debugging features, you might want to check some Mono/Unity tools.