1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

how to show this.variable value in observer callback function in chrome debug mode

Discussão em 'Angular' iniciado por user1169587, Setembro 30, 2024.

  1. user1169587

    user1169587 Guest

    In angular application, given the following code:

    this.f55Service.getByFormDeif55Key(this.formDeif55Key).subscribe(data => {
    this.stiFormDeif55Dto = data.body;
    console.log(data.body);
    });


    this.f55Service.getByFormDeif55Key(this.formDeif55Key) returns an Observable, I set an breakpoint in

    console.log(data.body);


    so to ensure that

    this.stiFormDeif55Dto = data.body;


    is run, then in chrome debug console, I type this.stiFormDeif55Dto but it returns undefined, if I point the mouse cursor to stiFormDeif55Dto variable in the line

    this.stiFormDeif55Dto = data.body;


    it also returns undefined.

    So how to show the value of the variable this.stiFormDeif55Dto in debug mode console?

    [​IMG]

    Continue reading...

Compartilhe esta Página