Move checks for empty command text to SqlCommand
[mono-project.git] / sdks / wasm / debugger-driver.html
blob42d4bcee4b023cb04ea36d9a667203654e2c34cc
1 <!doctype html>
2 <html lang="en-us">
3 <head>
4 </head>
5 <body>
6 <script type='text/javascript'>
7 var App = {
8 init: function () {
9 this.int_add = Module.mono_bind_static_method ("[debugger-test] Math:IntAdd");
10 console.log ("ready");
13 function invoke_add () {
14 return App.int_add (10, 20);
16 </script>
17 <script type="text/javascript" src="mono-config.js"></script>
18 <script type="text/javascript" src="runtime.js"></script>
19 <script async type="text/javascript" src="mono.js"></script>
20 Stuff goes here
21 </body>
22 </html>
24 17 sdks/wasm/debugger-test.cs
25 @@ -0,0 +1,17 @@
26 using System;
28 public class Math { //Only append content to this class as the test suite depends on line info
29 public static int IntAdd (int a, int b) {
30 int c = a + b;
31 int d = c + b;
32 int e = d + a;
34 return e;
37 public static int UseComplex () {
38 var complex = new Simple.Complex (10, "xx");
39 var res = complex.DoStuff ();
40 return res;
44 19 sdks/wasm/debugger-test2.cs
45 @@ -0,0 +1,19 @@
46 using System;
48 public class Misc { //Only append content to this class as the test suite depends on line info
49 public static int CreateObject (int foo, int bar) {
50 var f = new Fancy () {
51 Foo = foo,
52 Bar = bar,
55 Console.WriteLine ($"{f.Foo} {f.Bar}");
56 return f.Foo + f.Bar;
60 public class Fancy {
61 public int Foo;
62 public int Bar { get ; set; }