[debugger] Removing some asserts (#36234)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 14 May 2020 12:16:41 +0000 (08:16 -0400)
committerGitHub <noreply@github.com>
Thu, 14 May 2020 12:16:41 +0000 (09:16 -0300)
commitc71192037385c343c0d8c19e934cd7e179ca1770
treed62ecc8dfc403ca9547d93b2786f774074dbb879
parent622341ecc2d43ef81c509bde53de8513727d626d
[debugger] Removing some asserts (#36234)

Removing some asserts and returning err_invalid_argument with an error message when it's possible.

Fixes https://github.com/mono/mono/issues/19651

Co-authored-by: thaystg <thaystg@users.noreply.github.com>
src/mono/mono/mini/debugger-agent.c